コード例 #1
0
ファイル: pth.py プロジェクト: 2013Commons/hue
def _get_pth_filename():
  """
  _get_pth_filename -> Path to the .pth file.
  Location can be defined via HUE_PTH_DIR environment variable.
  May raise SystemError if the virtual env is absent.
  """
  pth_dir = common.HUE_PTH_DIR
  if pth_dir:
    return os.path.join(pth_dir, PTH_FILE)
  else:
    return os.path.join(common._get_python_site_packages_dir(), PTH_FILE)
コード例 #2
0
ファイル: pth.py プロジェクト: huzekang/hue
def _get_pth_filename():
    """
  _get_pth_filename -> Path to the .pth file.
  Location can be defined via HUE_PTH_DIR environment variable.
  May raise SystemError if the virtual env is absent.
  """
    pth_dir = common.HUE_PTH_DIR
    if pth_dir:
        return os.path.join(pth_dir, PTH_FILE)
    else:
        return os.path.join(common._get_python_site_packages_dir(), PTH_FILE)
コード例 #3
0
ファイル: pth.py プロジェクト: ndres/hue
def _get_pth_symlink():
  """
  _get_pth_symlink -> Path to the .pth symlink.
  May raise SystemError if the virtual env is absent.
  """
  return os.path.join(common._get_python_site_packages_dir(), PTH_SYMLINK)