mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
added data to event
This commit is contained in:
parent
4e904288ad
commit
c94ce278f1
1 changed files with 5 additions and 1 deletions
|
|
@ -46,7 +46,11 @@ class BaseEvent(object):
|
|||
class BeforeWorkfileSave(BaseEvent):
|
||||
"""Before workfile changes event data."""
|
||||
def __init__(self, new_workfile, workdir):
|
||||
super(BeforeWorkfileSave, self).__init__("before.workfile.save")
|
||||
data = {
|
||||
"workfile_path": new_workfile,
|
||||
"workdir_path": workdir
|
||||
}
|
||||
super(BeforeWorkfileSave, self).__init__("before.workfile.save", data)
|
||||
|
||||
self.workfile_path = new_workfile
|
||||
self.workdir_path = workdir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue