Skip to content

Commit

Permalink
Now lib work for projects of both types: Artella Indie and Enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoveda committed Aug 16, 2020
1 parent 648fd47 commit 12475db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions artellapipe/libs/pyblish/core/tool.py
Expand Up @@ -19,12 +19,15 @@

import tpDcc as tp

import artellapipe.register
import artellapipe
from artellapipe.core import tool
from artellapipe.libs.pyblish.managers import pyblishplugins

LOGGER = logging.getLogger()

LOGGER = logging.getLogger('artellapipe-libs-pyblish')

class ArtellaPyblishTool(artellapipe.ToolWidget, object):

class ArtellaPyblishTool(tool.ArtellaToolWidget, object):
def __init__(self, project, config, settings, parent):

self._pyblish_window = None
Expand Down Expand Up @@ -133,7 +136,7 @@ def _register_plugins(self):
return

for plugin_name, plugin_attrs in plugins_to_register.items():
plugin_class = artellapipe.PyblishMgr().get_plugin(plugin_name)
plugin_class = pyblishplugins.PyblishPluginsManager().get_plugin(plugin_name)
if not plugin_class:
LOGGER.warning('Impossible to load Pyblish Plugin: {}!'.format(plugin_name))
continue
Expand All @@ -152,6 +155,3 @@ def _deregister_plugins(self):

def _on_controller_reset(self):
self._pyblish_window.controller.context.data['project'] = self._project


artellapipe.register.register_class('PyblishTool', ArtellaPyblishTool)
Empty file.

0 comments on commit 12475db

Please sign in to comment.