Index: build/android/gyp/jar_toc.py |
diff --git a/build/android/gyp/jar_toc.py b/build/android/gyp/jar_toc.py |
index 169b853034080752e37fcb51176ff465f976ac1d..c05a42ac207f9814f5437748d5fccccc31ae7ea0 100755 |
--- a/build/android/gyp/jar_toc.py |
+++ b/build/android/gyp/jar_toc.py |
@@ -16,14 +16,13 @@ rebuild, will have a corresponding change in the TOC file. |
""" |
import optparse |
+import os |
import re |
import sys |
import zipfile |
-# pylint: disable=F0401 |
from util import build_utils |
from util import md5_check |
-# pylint: enable=F0401 |
def GetClassesInZipFile(zip_file): |
@@ -90,7 +89,7 @@ def DoJarToc(options): |
build_utils.Touch(toc_path) |
-def main(): |
+def main(argv): |
parser = optparse.OptionParser() |
parser.add_option('--jar-path', help='Input .jar path.') |
parser.add_option('--toc-path', help='Output .jar.TOC path.') |
@@ -108,4 +107,4 @@ def main(): |
if __name__ == '__main__': |
- sys.exit(main()) |
+ sys.exit(main(sys.argv)) |