mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
use 'name' attribute of host implementation if is available
This commit is contained in:
parent
d1b41ebac0
commit
0a900f8ae1
1 changed files with 2 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue