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

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: Fix failing fetch_benchmark_deps unittest + rebase. 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
« no previous file with comments | « tools/perf/profile_creators/__init__.py ('k') | tools/perf/run_tests » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..21786f6da966748c6b24ae894de135253176bca0 100644
--- a/tools/perf/profile_creators/update_remote_extensions.py
+++ b/tools/perf/profile_creators/update_remote_extensions.py
@@ -13,12 +13,18 @@ import tempfile
import urllib2
import zipfile
-sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..',
- 'telemetry'))
+sys.path.insert(1, os.path.abspath(os.path.join(
+ __file__, '..', '..')))
+from core import path_util
+
+path_util.AddCatapultBaseToPath()
from catapult_base import cloud_storage
+
+path_util.AddTelemetryToPath()
from telemetry.core import exceptions
+
# Remote target upload directory in cloud storage for extensions.
REMOTE_DIR = 'extension_set'
« no previous file with comments | « tools/perf/profile_creators/__init__.py ('k') | tools/perf/run_tests » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698