Index: tools/telemetry/telemetry/components/tvcm_stub.py |
diff --git a/tools/telemetry/telemetry/components/tvcm_stub.py b/tools/telemetry/telemetry/components/tvcm_stub.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b91c306711cb3774cf4448c0528d5e554d9668d1 |
--- /dev/null |
+++ b/tools/telemetry/telemetry/components/tvcm_stub.py |
@@ -0,0 +1,15 @@ |
+# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
tonyg
2014/02/19 16:44:32
2014
|
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+import os |
+import sys |
tonyg
2014/02/19 16:44:32
I think there should be some vertical space here.
|
+def _SetupTVCMPath(): |
slamm
2014/02/19 17:10:51
_SetupTVCMPath -> _SetupTvcmPath
|
+ tvcm_path = os.path.abspath(os.path.join( |
+ os.path.dirname(__file__), |
+ '..', '..', '..', '..', |
+ 'third_party', 'trace-viewer', 'third_party', 'tvcm')) |
+ assert os.path.exists(os.path.join(tvcm_path, 'tvcm', '__init__.py')) |
+ if tvcm_path not in sys.path: |
+ sys.path.append(tvcm_path) |
tonyg
2014/02/19 16:44:32
I think we also have a util method that appends to
|
+ |
+_SetupTVCMPath() |