mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
ftrack module load default paths to server and user handlers on initialization
This commit is contained in:
parent
6bdb782786
commit
2409dee0c5
1 changed files with 9 additions and 3 deletions
|
|
@ -29,9 +29,15 @@ class FtrackModule(
|
|||
self.enabled = ftrack_settings["enabled"]
|
||||
self.ftrack_url = ftrack_settings["ftrack_server"]
|
||||
|
||||
# TODO load from settings
|
||||
self.server_event_handlers_paths = []
|
||||
self.user_event_handlers_paths = []
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
self.server_event_handlers_paths = [
|
||||
os.path.join(current_dir, "events"),
|
||||
*ftrack_settings["ftrack_events_path"]
|
||||
]
|
||||
self.user_event_handlers_paths = [
|
||||
os.path.join(current_dir, "actions"),
|
||||
*ftrack_settings["ftrack_actions_path"]
|
||||
]
|
||||
|
||||
# Prepare attribute
|
||||
self.tray_module = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue