[tools/perf] Explicitly add Telemetry to path on scripts requiring it
We want to be able to import from core module in tools/perf without bringing the whole of Telemetry as a dependency. As a first step, for scripts that really need it we add near the top: from core import path_util path_util.AddTelemetryToPath() Alternatively, top level benchmark runner scripts can just import: from chrome_telemetry_build import chromium_config which *will* implicitly add to sys.path Telemetry and all its required dependencies. The implicit dependency to Telemetry in "core" will be removed on a follow up CL. Bug: 981349 Change-Id: I900366d1849341d079b45ae4201a2c6e9d1c9044 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1760218Reviewed-by:Paul Jensen <pauljensen@chromium.org> Reviewed-by:
Takumi Fujimoto <takumif@chromium.org> Reviewed-by:
John Budorick <jbudorick@chromium.org> Commit-Queue: Juan Antonio Navarro Pérez <perezju@chromium.org> Cr-Commit-Position: refs/heads/master@{#688463}
Showing
Please register or sign in to comment