remove PYPE_MODULE_ROOT traces

This commit is contained in:
Milan Kolar 2021-01-20 17:01:55 +01:00
parent ba2eaf31ab
commit 21dd9cbf56
3 changed files with 4 additions and 12 deletions

View file

@ -814,9 +814,9 @@ class ExtractBurnin(pype.api.Extractor):
"""Return path to python script for burnin processing."""
# TODO maybe convert to Plugin's attribute
# Get script path.
module_path = os.environ["PYPE_MODULE_ROOT"]
module_path = os.environ["PYPE_ROOT"]
# There can be multiple paths in PYPE_MODULE_ROOT, in which case
# There can be multiple paths in PYPE_ROOT, in which case
# we just take first one.
if os.pathsep in module_path:
module_path = module_path.split(os.pathsep)[0]

View file

@ -138,8 +138,8 @@
]
},
"PYTHONPATH": [
"{PYPE_MODULE_ROOT}/repos/avalon-core/setup/maya",
"{PYPE_MODULE_ROOT}/repos/maya-look-assigner",
"{PYPE_REPOS_ROOT}/avalon-core/setup/maya",
"{PYPE_REPOS_ROOT}/maya-look-assigner",
"{PYTHON_ENV}/python2/Lib/site-packages",
"{PYTHONPATH}"
],

View file

@ -501,14 +501,6 @@ def boot():
# or to `pype` or `pype_console` in case of frozen code
os.environ["PYPE_EXECUTABLE"] = sys.executable
# TODO: DEPRECATE remove when `pype-config` dissolves into Pype for good.
# PYPE_MODULE_ROOT should be changed to PYPE_REPOS_ROOT
# This needs to replace environment building in hosts
# .-=-----------------------=-=. ^ .=-=--------------------------=-.
os.environ["PYPE_MODULE_ROOT"] = os.environ["PYPE_ROOT"]
# -=------------------------=-=. v .=-=--------------------------=-.
if getattr(sys, 'frozen', False):
os.environ["PYPE_REPOS_ROOT"] = os.environ["PYPE_ROOT"]
else: