| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import os | 5 import os |
| 6 import sys | 6 import sys |
| 7 | 7 |
| 8 | 8 |
| 9 _CATAPULT_PATH = os.path.abspath(os.path.join( | 9 _CATAPULT_PATH = os.path.abspath(os.path.join( |
| 10 os.path.dirname(__file__), '..', '..', '..', 'third_party', 'catapult')) | 10 os.path.dirname(__file__), '..', '..', '..', 'third_party', 'catapult')) |
| 11 | 11 |
| 12 _DEVIL_PATH = os.path.join(_CATAPULT_PATH, 'devil') | 12 _DEVIL_PATH = os.path.join(_CATAPULT_PATH, 'devil') |
| 13 | 13 |
| 14 _PYTRACE_PATH = os.path.join(_CATAPULT_PATH, 'common', 'py_trace_event') | 14 _PYTRACE_PATH = os.path.join(_CATAPULT_PATH, 'common', 'py_trace_event') |
| 15 | 15 |
| 16 _PY_UTILS_PATH = os.path.join(_CATAPULT_PATH, 'common', 'py_utils') |
| 17 |
| 16 _TRACE2HTML_PATH = os.path.join(_CATAPULT_PATH, 'tracing') | 18 _TRACE2HTML_PATH = os.path.join(_CATAPULT_PATH, 'tracing') |
| 17 | 19 |
| 20 |
| 18 if _DEVIL_PATH not in sys.path: | 21 if _DEVIL_PATH not in sys.path: |
| 19 sys.path.append(_DEVIL_PATH) | 22 sys.path.append(_DEVIL_PATH) |
| 20 | 23 |
| 21 if _PYTRACE_PATH not in sys.path: | 24 if _PYTRACE_PATH not in sys.path: |
| 22 sys.path.append(_PYTRACE_PATH) | 25 sys.path.append(_PYTRACE_PATH) |
| 23 | 26 |
| 27 if _PY_UTILS_PATH not in sys.path: |
| 28 sys.path.append(_PY_UTILS_PATH) |
| 29 |
| 24 if _TRACE2HTML_PATH not in sys.path: | 30 if _TRACE2HTML_PATH not in sys.path: |
| 25 sys.path.append(_TRACE2HTML_PATH) | 31 sys.path.append(_TRACE2HTML_PATH) |
| OLD | NEW |