Merge branch 'feature/2.0/PYPE-306_update_enchancement' into feature/2.0/PYPE-294_local_http_server

This commit is contained in:
Jakub Trllo 2019-04-23 18:28:30 +02:00
commit b6a01ecd39
20 changed files with 224 additions and 233 deletions

View file

@ -35,11 +35,15 @@ def registerApp(app, session):
label = apptoml.get('ftrack_label', app.get('label', name))
icon = apptoml.get('ftrack_icon', None)
description = apptoml.get('description', None)
preactions = apptoml.get('preactions', [])
if icon:
icon = icon.format(os.environ.get('PYPE_STATICS_SERVER', ''))
# register action
AppAction(
session, label, name, executable, variant, icon, description
session, label, name, executable, variant,
icon, description, preactions
).register()