tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

__init__.py (1168B)


      1 # Copyright 2012 The Chromium Authors
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 
      6 import os
      7 import sys
      8 
      9 
     10 _SRC_PATH = os.path.abspath(
     11    os.path.join(os.path.dirname(__file__), '..', '..', '..'))
     12 
     13 _THIRD_PARTY_PATH = os.path.join(_SRC_PATH, 'third_party')
     14 
     15 _CATAPULT_PATH = os.path.join(_THIRD_PARTY_PATH, 'catapult')
     16 
     17 _DEVIL_PATH = os.path.join(_CATAPULT_PATH, 'devil')
     18 
     19 _PYTRACE_PATH = os.path.join(_CATAPULT_PATH, 'common', 'py_trace_event')
     20 
     21 _PY_UTILS_PATH = os.path.join(_CATAPULT_PATH, 'common', 'py_utils')
     22 
     23 _SIX_PATH = os.path.join(_THIRD_PARTY_PATH, 'six', 'src')
     24 
     25 _TRACE2HTML_PATH = os.path.join(_CATAPULT_PATH, 'tracing')
     26 
     27 _BUILD_UTIL_PATH = os.path.join(_SRC_PATH, 'build', 'util')
     28 
     29 if _DEVIL_PATH not in sys.path:
     30  sys.path.append(_DEVIL_PATH)
     31 
     32 if _PYTRACE_PATH not in sys.path:
     33  sys.path.append(_PYTRACE_PATH)
     34 
     35 if _PY_UTILS_PATH not in sys.path:
     36  sys.path.append(_PY_UTILS_PATH)
     37 
     38 if _TRACE2HTML_PATH not in sys.path:
     39  sys.path.append(_TRACE2HTML_PATH)
     40 
     41 if _SIX_PATH not in sys.path:
     42  sys.path.append(_SIX_PATH)
     43 
     44 if _BUILD_UTIL_PATH not in sys.path:
     45  sys.path.insert(0, _BUILD_UTIL_PATH)