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 |