Chromium Code Reviews

Unified Diff: tools/telemetry/telemetry/websocket.py

Issue 11779041: [telemetry] Add support for BenchmarkResults that vary from page to page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nitfix Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « tools/telemetry/telemetry/perf_tests_helper.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/websocket.py
diff --git a/tools/telemetry/telemetry/websocket.py b/tools/telemetry/telemetry/websocket.py
index 6d0cab8d48b89c734ef53951a1d189f1b33477e2..056f44a4f19737863089cc5e1aae4621f05bbe64 100644
--- a/tools/telemetry/telemetry/websocket.py
+++ b/tools/telemetry/telemetry/websocket.py
@@ -8,8 +8,10 @@ import sys
def __init__():
ws_path = os.path.join(os.path.dirname(__file__),
'../third_party/websocket-client')
+ ws_path = os.path.abspath(ws_path)
assert os.path.exists(os.path.join(ws_path, 'websocket.py'))
- sys.path.append(ws_path)
+ if ws_path not in sys.path:
+ sys.path.append(ws_path)
__init__()
« no previous file with comments | « tools/telemetry/telemetry/perf_tests_helper.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine