| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import fnmatch | 5 import fnmatch |
| 6 import imp | 6 import imp |
| 7 import logging | 7 import logging |
| 8 import optparse | 8 import optparse |
| 9 import os | 9 import os |
| 10 import sys | 10 import sys |
| 11 import zipfile | 11 import zipfile |
| 12 | 12 |
| 13 from telemetry import benchmark | 13 from telemetry import benchmark |
| 14 from telemetry.core import discover | |
| 15 from telemetry.internal.util import command_line | 14 from telemetry.internal.util import command_line |
| 16 from telemetry.internal.util import path | 15 from telemetry.internal.util import path |
| 17 from telemetry.internal.util import path_set | 16 from telemetry.internal.util import path_set |
| 18 | 17 |
| 18 from py_utils import discover |
| 19 |
| 19 try: | 20 try: |
| 20 from modulegraph import modulegraph # pylint: disable=import-error | 21 from modulegraph import modulegraph # pylint: disable=import-error |
| 21 except ImportError as err: | 22 except ImportError as err: |
| 22 modulegraph = None | 23 modulegraph = None |
| 23 import_error = err | 24 import_error = err |
| 24 | 25 |
| 25 from core import bootstrap | 26 from core import bootstrap |
| 26 from core import path_util | 27 from core import path_util |
| 27 | 28 |
| 28 DEPS_FILE = 'bootstrap_deps' | 29 DEPS_FILE = 'bootstrap_deps' |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 244 |
| 244 def Run(self, args): | 245 def Run(self, args): |
| 245 target_paths = args.positional_args | 246 target_paths = args.positional_args |
| 246 dependencies = FindDependencies(target_paths, args) | 247 dependencies = FindDependencies(target_paths, args) |
| 247 if args.zip: | 248 if args.zip: |
| 248 ZipDependencies(target_paths, dependencies, args) | 249 ZipDependencies(target_paths, dependencies, args) |
| 249 print 'Zip archive written to %s.' % args.zip | 250 print 'Zip archive written to %s.' % args.zip |
| 250 else: | 251 else: |
| 251 print '\n'.join(sorted(dependencies)) | 252 print '\n'.join(sorted(dependencies)) |
| 252 return 0 | 253 return 0 |
| OLD | NEW |