mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
changed plugin filter to load presets from directory structure,
added tests
This commit is contained in:
parent
1f748ad0a2
commit
c1de475c58
5 changed files with 150 additions and 21 deletions
|
|
@ -2,7 +2,7 @@ import os
|
|||
|
||||
from pyblish import api as pyblish
|
||||
from avalon import api as avalon
|
||||
from Qt import QtWidgets
|
||||
# from Qt import QtWidgets
|
||||
from .lib import filter_pyblish_plugins
|
||||
|
||||
import logging
|
||||
|
|
@ -28,17 +28,17 @@ def install():
|
|||
avalon.register_plugin_path(avalon.Loader, LOAD_PATH)
|
||||
|
||||
# pyblish-qml settings.
|
||||
try:
|
||||
__import__("pyblish_qml")
|
||||
except ImportError as e:
|
||||
log.error("Could not load pyblish-qml: %s " % e)
|
||||
else:
|
||||
from pyblish_qml import settings
|
||||
app = QtWidgets.QApplication.instance()
|
||||
screen_resolution = app.desktop().screenGeometry()
|
||||
width, height = screen_resolution.width(), screen_resolution.height()
|
||||
settings.WindowSize = (width / 3, height * 0.75)
|
||||
settings.WindowPosition = (0, 0)
|
||||
# try:
|
||||
# __import__("pyblish_qml")
|
||||
# except ImportError as e:
|
||||
# log.error("Could not load pyblish-qml: %s " % e)
|
||||
# else:
|
||||
# from pyblish_qml import settings
|
||||
# app = QtWidgets.QApplication.instance()
|
||||
# screen_resolution = app.desktop().screenGeometry()
|
||||
# width, height = screen_resolution.width(), screen_resolution.height()
|
||||
# settings.WindowSize = (width / 3, height * 0.75)
|
||||
# settings.WindowPosition = (0, 0)
|
||||
|
||||
|
||||
def uninstall():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue