mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
OP-4845 - try to push OPENPYPE_MONGO to extractenvironment process
This commit is contained in:
parent
7c02c3b9d6
commit
2bc019f6c0
1 changed files with 6 additions and 0 deletions
|
|
@ -355,6 +355,12 @@ def inject_openpype_environment(deadlinePlugin):
|
|||
" AVALON_TASK, AVALON_APP_NAME"
|
||||
))
|
||||
|
||||
openpype_mongo = job.GetJobEnvironmentKeyValue("OPENPYPE_MONGO")
|
||||
if openpype_mongo:
|
||||
# inject env var for OP extractenvironments
|
||||
deadlinePlugin.SetProcessEnvironmentVariable("OPENPYPE_MONGO",
|
||||
openpype_mongo)
|
||||
|
||||
if not os.environ.get("OPENPYPE_MONGO"):
|
||||
print(">>> Missing OPENPYPE_MONGO env var, process won't work")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue