feat: first commit

This commit is contained in:
jebepoix committed 2024-03-19 15:05:38 +01:00
1 parent 8222407518
commit 2b0f9973fa
18 files changed
+1432 -1

No files matched your search

+27
View File
@@ -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")