mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
create plugins have access to project name
This commit is contained in:
parent
a88b1f1a33
commit
14acec63c2
2 changed files with 10 additions and 0 deletions
|
|
@ -748,6 +748,10 @@ class CreateContext:
|
|||
def host_name(self):
|
||||
return os.environ["AVALON_APP"]
|
||||
|
||||
@property
|
||||
def project_name(self):
|
||||
return self.dbcon.active_project()
|
||||
|
||||
@property
|
||||
def log(self):
|
||||
"""Dynamic access to logger."""
|
||||
|
|
|
|||
|
|
@ -92,6 +92,12 @@ class BaseCreator:
|
|||
"""Family that plugin represents."""
|
||||
pass
|
||||
|
||||
@property
|
||||
def project_name(self):
|
||||
"""Family that plugin represents."""
|
||||
|
||||
self.create_context.project_name
|
||||
|
||||
@property
|
||||
def log(self):
|
||||
if self._log is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue