added application action to pype.lib

This commit is contained in:
iLLiCiTiT 2020-08-15 01:48:30 +02:00
parent 7f7b220d32
commit 83ac4df7b6
2 changed files with 35 additions and 2 deletions

View file

@ -16,9 +16,10 @@ provides a bridge between the file-based project inventory and configuration.
import os
from Qt import QtGui
from avalon import lib, pipeline
from avalon import lib
from avalon.vendor import qtawesome
from pype.api import resources
from pype.lib import ApplicationAction
ICON_CACHE = {}
NOT_FOUND = type("NotFound", (object, ), {})
@ -52,7 +53,7 @@ def get_application_actions(project):
action = type(
"app_{}".format(app_name),
(pipeline.Application,),
(ApplicationAction,),
{
"name": app_name,
"label": label,