| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """This module fetches and prints the dependencies given a benchmark.""" | 6 """This module fetches and prints the dependencies given a benchmark.""" |
| 7 | 7 |
| 8 import os | 8 import os |
| 9 import sys | 9 import sys |
| 10 | 10 |
| 11 from core import path_util | 11 from core import path_util |
| 12 | 12 |
| 13 path_util.AddCatapultBaseToPath() | 13 path_util.AddPyUtilsToPath() |
| 14 from catapult_base import cloud_storage | 14 from py_utils import cloud_storage |
| 15 | 15 |
| 16 path_util.AddTelemetryToPath() | 16 path_util.AddTelemetryToPath() |
| 17 from telemetry import benchmark_runner | 17 from telemetry import benchmark_runner |
| 18 | 18 |
| 19 from chrome_telemetry_build import chromium_config | 19 from chrome_telemetry_build import chromium_config |
| 20 | 20 |
| 21 | 21 |
| 22 def _FetchDependenciesIfNeeded(story_set): | 22 def _FetchDependenciesIfNeeded(story_set): |
| 23 """ Download files needed by a user story set. """ | 23 """ Download files needed by a user story set. """ |
| 24 # Download files in serving_dirs. | 24 # Download files in serving_dirs. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 deps = _EnumerateDependencies(story_set) | 81 deps = _EnumerateDependencies(story_set) |
| 82 for dep in deps: | 82 for dep in deps: |
| 83 print >> output, dep | 83 print >> output, dep |
| 84 | 84 |
| 85 | 85 |
| 86 if __name__ == '__main__': | 86 if __name__ == '__main__': |
| 87 if len(sys.argv) != 2 or sys.argv[1][0] == '-': | 87 if len(sys.argv) != 2 or sys.argv[1][0] == '-': |
| 88 _show_usage() | 88 _show_usage() |
| 89 else: | 89 else: |
| 90 main() | 90 main() |
| OLD | NEW |