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)
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)