Index: common/py_trace_event/py_trace_event/__init__.py |
diff --git a/common/py_trace_event/py_trace_event/__init__.py b/common/py_trace_event/py_trace_event/__init__.py |
index 637b7c90d3197bb905dcfcacd390a60cf2cb0491..b8b6630125a2c4607676e1d4f19d341ab5234763 100644 |
--- a/common/py_trace_event/py_trace_event/__init__.py |
+++ b/common/py_trace_event/py_trace_event/__init__.py |
@@ -1,7 +1,9 @@ |
# Copyright 2016 The Chromium Authors. All rights reserved. |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import os |
import sys |
- |
-sys.path.append('../../../py_utils') |
+SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__)) |
+PY_UTILS = os.path.abspath(os.path.join(SCRIPT_DIR, '..', '..', 'py_utils')) |
+sys.path.append(PY_UTILS) |