mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
get host name from environment if not passed
# Conflicts: # openpype/tools/experimental_tools/tools_def.py
This commit is contained in:
parent
630299e340
commit
b6bb7a9d09
1 changed files with 5 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
|
||||
|
|
@ -53,6 +54,10 @@ class ExperimentalTools:
|
|||
"""
|
||||
def __init__(self, parent=None, host_name=None, filter_hosts=None):
|
||||
experimental_tools = []
|
||||
|
||||
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