(hotfix) added MongoDB check to register of app actions - without will discover of actions take ages

This commit is contained in:
Jakub Trllo 2019-08-06 00:14:55 +02:00
parent 89e2b2aa4c
commit 209be28ea6

View file

@ -4,6 +4,7 @@ import time
from pype.ftrack import AppAction
from avalon import lib
from pypeapp import Logger
from pype.lib import get_all_avalon_projects
log = Logger().get_logger(__name__)
@ -48,6 +49,10 @@ def registerApp(app, session):
def register(session):
# WARNING getting projects only helps to check connection to mongo
# - without will `discover` of ftrack apps actions take ages
result = get_all_avalon_projects()
apps = []
launchers_path = os.path.join(os.environ["PYPE_CONFIG"], "launchers")