rename config folder

This commit is contained in:
Jakub Jezek 2018-10-02 22:55:04 +02:00
parent bb17ef7221
commit 7667674317
182 changed files with 272 additions and 272 deletions

29
pype/__init__.py Normal file
View file

@ -0,0 +1,29 @@
import os
import sys
import imp
from pyblish import api as pyblish
from avalon import api as avalon
from .launcher_actions import register_launcher_actions
from .lib import collect_container_metadata
PACKAGE_DIR = os.path.dirname(__file__)
PLUGINS_DIR = os.path.join(PACKAGE_DIR, "plugins")
# Global plugin paths
PUBLISH_PATH = os.path.join(PLUGINS_DIR, "global", "publish")
LOAD_PATH = os.path.join(PLUGINS_DIR, "global", "load")
def install():
print("Registering global plug-ins..")
pyblish.register_plugin_path(PUBLISH_PATH)
avalon.register_plugin_path(avalon.Loader, LOAD_PATH)
def uninstall():
print("Deregistering global plug-ins..")
pyblish.deregister_plugin_path(PUBLISH_PATH)
avalon.deregister_plugin_path(avalon.Loader, LOAD_PATH)