mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
adding flame wiretap env into settings and allowing them in prelaunch hook
This commit is contained in:
parent
6d89bbc7a7
commit
718f334752
2 changed files with 10 additions and 4 deletions
|
|
@ -2,6 +2,7 @@ import os
|
|||
import json
|
||||
import tempfile
|
||||
import contextlib
|
||||
import socket
|
||||
from openpype.lib import (
|
||||
PreLaunchHook, get_openpype_username)
|
||||
from openpype.hosts import flame as opflame
|
||||
|
|
@ -32,6 +33,7 @@ class FlamePrelaunch(PreLaunchHook):
|
|||
"""Hook entry method."""
|
||||
project_doc = self.data["project_doc"]
|
||||
user_name = get_openpype_username()
|
||||
hostname = socket.gethostname()
|
||||
|
||||
self.log.debug("Collected user \"{}\"".format(user_name))
|
||||
self.log.info(pformat(project_doc))
|
||||
|
|
@ -53,11 +55,12 @@ class FlamePrelaunch(PreLaunchHook):
|
|||
"FieldDominance": "PROGRESSIVE"
|
||||
}
|
||||
|
||||
|
||||
data_to_script = {
|
||||
# from settings
|
||||
"host_name": "localhost",
|
||||
"volume_name": "stonefs",
|
||||
"group_name": "staff",
|
||||
"host_name": os.getenv("FLAME_WIRETAP_HOSTNAME") or hostname,
|
||||
"volume_name": os.getenv("FLAME_WIRETAP_VOLUME"),
|
||||
"group_name": os.getenv("FLAME_WIRETAP_GROUP"),
|
||||
"color_policy": "ACES 1.1",
|
||||
|
||||
# from project
|
||||
|
|
|
|||
|
|
@ -107,7 +107,10 @@
|
|||
"windows": "",
|
||||
"darwin": "",
|
||||
"linux": ""
|
||||
}
|
||||
},
|
||||
"FLAME_WIRETAP_HOSTNAME": "",
|
||||
"FLAME_WIRETAP_VOLUME": "stonefs",
|
||||
"FLAME_WIRETAP_GROUP": "staff"
|
||||
},
|
||||
"variants": {
|
||||
"2021": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue