use 'name' attribute of host implementation if is available

This commit is contained in:
iLLiCiTiT 2023-01-28 00:30:59 +01:00
parent d1b41ebac0
commit 0a900f8ae1

View file

@ -1111,6 +1111,8 @@ class CreateContext:
@property
def host_name(self):
if hasattr(self.host, "name"):
return self.host.name
return os.environ["AVALON_APP"]
def get_current_project_name(self):