mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
converted hiero and nukestudio environments to host defaults
This commit is contained in:
parent
7bdc937f69
commit
243de91a8e
2 changed files with 42 additions and 16 deletions
|
|
@ -0,0 +1,40 @@
|
||||||
|
import os
|
||||||
|
import platform
|
||||||
|
|
||||||
|
|
||||||
|
def add_implementation_envs(env):
|
||||||
|
# Add requirements to HIERO_PLUGIN_PATH
|
||||||
|
pype_root = os.environ["OPENPYPE_REPOS_ROOT"]
|
||||||
|
new_hiero_paths = [
|
||||||
|
os.path.join(pype_root, "openpype", "hosts", "hiero", "startup")
|
||||||
|
]
|
||||||
|
old_hiero_path = env.get("HIERO_PLUGIN_PATH") or ""
|
||||||
|
for path in old_hiero_path.split(os.pathsep):
|
||||||
|
if not path or not os.path.exists(path):
|
||||||
|
continue
|
||||||
|
|
||||||
|
norm_path = os.path.normpath(path)
|
||||||
|
if norm_path not in new_hiero_paths:
|
||||||
|
new_hiero_paths.append(norm_path)
|
||||||
|
|
||||||
|
env["HIERO_PLUGIN_PATH"] = os.pathsep.join(new_hiero_paths)
|
||||||
|
|
||||||
|
# Try to add QuickTime to PATH
|
||||||
|
quick_time_path = "C:/Program Files (x86)/QuickTime/QTSystem"
|
||||||
|
if platform.system() == "windows" and os.path.exists(quick_time_path):
|
||||||
|
path_value = env.get("PATH") or ""
|
||||||
|
path_paths = [
|
||||||
|
path
|
||||||
|
for path in path_value.split(os.pathsep)
|
||||||
|
if path
|
||||||
|
]
|
||||||
|
path_paths.append(quick_time_path)
|
||||||
|
env["PATH"] = os.pathsep.join(path_paths)
|
||||||
|
|
||||||
|
# Set default values if are not already set via settings
|
||||||
|
defaults = {
|
||||||
|
"LOGLEVEL": "DEBUG"
|
||||||
|
}
|
||||||
|
for key, value in defaults.items():
|
||||||
|
if not env.get(key):
|
||||||
|
env[key] = value
|
||||||
|
|
@ -339,15 +339,8 @@
|
||||||
"icon": "{}/app_icons/nuke.png",
|
"icon": "{}/app_icons/nuke.png",
|
||||||
"host_name": "hiero",
|
"host_name": "hiero",
|
||||||
"environment": {
|
"environment": {
|
||||||
"HIERO_PLUGIN_PATH": [
|
|
||||||
"{OPENPYPE_REPOS_ROOT}/openpype/hosts/hiero/startup"
|
|
||||||
],
|
|
||||||
"PATH": {
|
|
||||||
"windows": "C:/Program Files (x86)/QuickTime/QTSystem/;{PATH}"
|
|
||||||
},
|
|
||||||
"WORKFILES_STARTUP": "0",
|
"WORKFILES_STARTUP": "0",
|
||||||
"TAG_ASSETBUILD_STARTUP": "0",
|
"TAG_ASSETBUILD_STARTUP": "0"
|
||||||
"LOGLEVEL": "DEBUG"
|
|
||||||
},
|
},
|
||||||
"variants": {
|
"variants": {
|
||||||
"13-0": {
|
"13-0": {
|
||||||
|
|
@ -481,15 +474,8 @@
|
||||||
"icon": "{}/app_icons/hiero.png",
|
"icon": "{}/app_icons/hiero.png",
|
||||||
"host_name": "hiero",
|
"host_name": "hiero",
|
||||||
"environment": {
|
"environment": {
|
||||||
"HIERO_PLUGIN_PATH": [
|
|
||||||
"{OPENPYPE_REPOS_ROOT}/openpype/hosts/hiero/startup"
|
|
||||||
],
|
|
||||||
"PATH": {
|
|
||||||
"windows": "C:/Program Files (x86)/QuickTime/QTSystem/;{PATH}"
|
|
||||||
},
|
|
||||||
"WORKFILES_STARTUP": "0",
|
"WORKFILES_STARTUP": "0",
|
||||||
"TAG_ASSETBUILD_STARTUP": "0",
|
"TAG_ASSETBUILD_STARTUP": "0"
|
||||||
"LOGLEVEL": "DEBUG"
|
|
||||||
},
|
},
|
||||||
"variants": {
|
"variants": {
|
||||||
"13-0": {
|
"13-0": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue