| Index: swarm_client/tools/zip_run_isolated.py
|
| ===================================================================
|
| --- swarm_client/tools/zip_run_isolated.py (revision 235167)
|
| +++ swarm_client/tools/zip_run_isolated.py (working copy)
|
| @@ -1,30 +0,0 @@
|
| -#!/usr/bin/env python
|
| -# Copyright 2013 The Chromium Authors. All rights reserved.
|
| -# Use of this source code is governed by a BSD-style license that can be
|
| -# found in the LICENSE file.
|
| -
|
| -"""Converts run_isolated.py with dependencies into run_isolated.zip.
|
| -
|
| -run_isolated.zip will be created in the current directory.
|
| -
|
| -Useful for reproducing swarm-bot environment like this:
|
| - ./tools/zip_run_isolated.py && python run_isolated.zip ...
|
| -"""
|
| -
|
| -import os
|
| -import sys
|
| -
|
| -ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
| -sys.path.insert(0, ROOT_DIR)
|
| -
|
| -import run_isolated
|
| -
|
| -
|
| -def main():
|
| - zip_package = run_isolated.get_as_zip_package()
|
| - zip_package.zip_into_file('run_isolated.zip')
|
| - return 0
|
| -
|
| -
|
| -if __name__ == '__main__':
|
| - sys.exit(main())
|
|
|