OLD | NEW |
| (Empty) |
1 #!/usr/bin/env python | |
2 # Copyright 2013 The Chromium Authors. All rights reserved. | |
3 # Use of this source code is governed by a BSD-style license that can be | |
4 # found in the LICENSE file. | |
5 | |
6 """Converts run_isolated.py with dependencies into run_isolated.zip. | |
7 | |
8 run_isolated.zip will be created in the current directory. | |
9 | |
10 Useful for reproducing swarm-bot environment like this: | |
11 ./tools/zip_run_isolated.py && python run_isolated.zip ... | |
12 """ | |
13 | |
14 import os | |
15 import sys | |
16 | |
17 ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
18 sys.path.insert(0, ROOT_DIR) | |
19 | |
20 import run_isolated | |
21 | |
22 | |
23 def main(): | |
24 zip_package = run_isolated.get_as_zip_package() | |
25 zip_package.zip_into_file('run_isolated.zip') | |
26 return 0 | |
27 | |
28 | |
29 if __name__ == '__main__': | |
30 sys.exit(main()) | |
OLD | NEW |