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

Unified Diff: common/py_trace_event/py_trace_event/__init__.py

Issue 2894783004: common/py_trace_event: fix paths in __init__ (Closed)
Patch Set: common/py_trace_event: fix paths in __init__ Created 3 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698