mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
add maya's environments to add_implementation_envs
This commit is contained in:
parent
eb70dbd62a
commit
ad9087e398
2 changed files with 30 additions and 14 deletions
|
|
@ -0,0 +1,29 @@
|
|||
import os
|
||||
|
||||
|
||||
def add_implementation_envs(env):
|
||||
# Add requirements to PYTHONPATH
|
||||
pype_root = os.environ["OPENPYPE_REPOS_ROOT"]
|
||||
new_python_path = os.pathsep.join([
|
||||
os.path.join(pype_root, "openpype", "hosts", "maya", "startup"),
|
||||
os.path.join(pype_root, "repos", "avalon-core", "setup", "maya"),
|
||||
os.path.join(pype_root, "tools", "mayalookassigner")
|
||||
])
|
||||
old_python_path = env.get("PYTHONPATH")
|
||||
if old_python_path:
|
||||
new_python_path = os.pathsep.join([new_python_path, old_python_path])
|
||||
env["PYTHONPATH"] = new_python_path
|
||||
|
||||
# Set default values if are not already set via settings
|
||||
defaults = {
|
||||
"MAYA_DISABLE_CLIC_IPM": "Yes",
|
||||
"MAYA_DISABLE_CIP": "Yes",
|
||||
"MAYA_DISABLE_CER": "Yes",
|
||||
"PYMEL_SKIP_MEL_INIT": "Yes",
|
||||
"LC_ALL": "C",
|
||||
"OPENPYPE_LOG_NO_COLORS": "Yes"
|
||||
}
|
||||
for key, value in defaults.items():
|
||||
if env.get(key):
|
||||
continue
|
||||
env[key] = value
|
||||
|
|
@ -4,20 +4,7 @@
|
|||
"label": "Maya",
|
||||
"icon": "{}/app_icons/maya.png",
|
||||
"host_name": "maya",
|
||||
"environment": {
|
||||
"PYTHONPATH": [
|
||||
"{OPENPYPE_REPOS_ROOT}/openpype/hosts/maya/startup",
|
||||
"{OPENPYPE_REPOS_ROOT}/repos/avalon-core/setup/maya",
|
||||
"{OPENPYPE_REPOS_ROOT}/repos/maya-look-assigner",
|
||||
"{PYTHONPATH}"
|
||||
],
|
||||
"MAYA_DISABLE_CLIC_IPM": "Yes",
|
||||
"MAYA_DISABLE_CIP": "Yes",
|
||||
"MAYA_DISABLE_CER": "Yes",
|
||||
"PYMEL_SKIP_MEL_INIT": "Yes",
|
||||
"LC_ALL": "C",
|
||||
"OPENPYPE_LOG_NO_COLORS": "Yes"
|
||||
},
|
||||
"environment": {},
|
||||
"variants": {
|
||||
"2022": {
|
||||
"use_python_2": false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue