Chromium Code Reviews| Index: chrome/browser/resources/unpack_pak.py |
| diff --git a/chrome/browser/resources/unpack_pak.py b/chrome/browser/resources/unpack_pak.py |
| index ce6a993f7ed4edcee9bf2c6710e53ec626c0b99c..0a75b43e12ff8627b20139aa4a9984a9702afd3f 100755 |
| --- a/chrome/browser/resources/unpack_pak.py |
| +++ b/chrome/browser/resources/unpack_pak.py |
| @@ -3,6 +3,7 @@ |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| +import argparse |
| import os |
| import re |
| import sys |
| @@ -51,3 +52,14 @@ def unpack(pak_path, out_path): |
| os.makedirs(dirname) |
| with open(os.path.join(out_path, filename), 'w') as file: |
| file.write(text) |
| + |
|
Dan Beam
2017/03/10 00:10:32
\n\n
dpapad
2017/03/10 01:42:31
Done.
|
| +def main(): |
| + parser = argparse.ArgumentParser() |
| + parser.add_argument('--pak_file') |
| + parser.add_argument('--out_folder') |
| + args = parser.parse_args() |
| + |
| + unpack(args.pak_file, args.out_folder) |
| + |
|
Dan Beam
2017/03/10 00:10:32
\n\n
dpapad
2017/03/10 01:42:31
Done.
|
| +if __name__ == '__main__': |
| + main() |