feat: first commit
This commit is contained in:
1 parent
8222407518
commit
2b0f9973fa
18 files changed
+1432
-1
No files matched your search
@@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
import os
|
||||
from openpype.modules import OpenPypeModule, ILaunchHookPaths
|
||||
|
||||
from .version import __version__
|
||||
|
||||
PERFORCE_MODULE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
||||
class PerforceAddon(OpenPypeModule, ILaunchHookPaths):
|
||||
"""Perfrorce Addon
|
||||
"""
|
||||
name = "perforce"
|
||||
version = __version__
|
||||
label = "Perforce"
|
||||
|
||||
def initialize(self, module_settings):
|
||||
self.enabled = True
|
||||
|
||||
def get_launch_hook_paths(self, app):
|
||||
"""Implementation for applications launch hooks.
|
||||
|
||||
Returns:
|
||||
(str): full absolut path to directory with hooks for the module
|
||||
"""
|
||||
return os.path.join(PERFORCE_MODULE_DIR, "hooks")
|
||||
Reference in new issue
Block a user