added default envent handler paths to ftrack lib

This commit is contained in:
iLLiCiTiT 2020-12-04 19:14:24 +01:00
parent 5b57ecb1e3
commit 45a6988fd8

View file

@ -1,9 +1,20 @@
import os
from . import avalon_sync from . import avalon_sync
from . import credentials from . import credentials
from .ftrack_base_handler import BaseHandler from .ftrack_base_handler import BaseHandler
from .ftrack_event_handler import BaseEvent from .ftrack_event_handler import BaseEvent
from .ftrack_action_handler import BaseAction, ServerAction, statics_icon from .ftrack_action_handler import BaseAction, ServerAction, statics_icon
FTRACK_MODULE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SERVER_HANDLERS_DIR = os.path.join(
FTRACK_MODULE_DIR,
"events"
)
USER_HANDLERS_DIR = os.path.join(
FTRACK_MODULE_DIR,
"actions"
)
__all__ = ( __all__ = (
"avalon_sync", "avalon_sync",
"credentials", "credentials",
@ -11,5 +22,8 @@ __all__ = (
"BaseEvent", "BaseEvent",
"BaseAction", "BaseAction",
"ServerAction", "ServerAction",
"statics_icon" "statics_icon",
"FTRACK_MODULE_DIR",
"SERVER_HANDLERS_DIR",
"USER_HANDLERS_DIR"
) )