mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 06:12:19 +01:00
get host name from environment if not passed
This commit is contained in:
parent
d3862772ce
commit
baab0d73ae
1 changed files with 4 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
from openpype.settings import get_local_settings
|
||||
|
||||
# Constant key under which local settings are stored
|
||||
|
|
@ -60,6 +61,9 @@ class ExperimentalTools:
|
|||
"Combined creation and publishing into one tool."
|
||||
)
|
||||
]
|
||||
if not host_name:
|
||||
host_name = os.environ.get("AVALON_APP")
|
||||
|
||||
if filter_hosts is None:
|
||||
filter_hosts = host_name is not None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue