get host name from environment if not passed

# Conflicts:
#	openpype/tools/experimental_tools/tools_def.py
This commit is contained in:
iLLiCiTiT 2021-10-20 11:06:21 +02:00
parent 630299e340
commit b6bb7a9d09

View file

@ -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