Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1544)

Unified Diff: tools/perf/profile_creators/update_remote_extensions.py

Issue 1568103002: Update tools/perf to use cloud_storage from catapult. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/perf/profile_creators/update_remote_extensions.py
diff --git a/tools/perf/profile_creators/update_remote_extensions.py b/tools/perf/profile_creators/update_remote_extensions.py
index f8d40b2cc49c6a2d41bdeb9618075ba1737cbe17..4040a0f0652a935de969d941374a9a0aa5e1dcc1 100644
--- a/tools/perf/profile_creators/update_remote_extensions.py
+++ b/tools/perf/profile_creators/update_remote_extensions.py
@@ -13,8 +13,17 @@ import tempfile
import urllib2
import zipfile
-sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..',
- 'telemetry'))
+chromium_src_path = os.path.realpath(os.path.join(
+ os.path.abspath(__file__), '..', '..', '..', '..'))
+
+telemetry_path = os.path.join(chromium_src_path, 'tools', 'telemetry')
+if telemetry_path not in sys.path:
+ sys.path.insert(1, telemetry_path)
+
+catapult_base_path = os.path.join(
+ chromium_src_path, 'third_party', 'catapult', 'catapult_base')
+if catapult_base_path not in sys.path:
+ sys.path.insert(1, catapult_base_path)
from catapult_base import cloud_storage
from telemetry.core import exceptions
« tools/perf/profile_creators/__init__.py ('K') | « tools/perf/profile_creators/__init__.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698