mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
32 lines
635 B
Python
32 lines
635 B
Python
import Qt
|
|
|
|
|
|
initialized = False
|
|
resources = None
|
|
if Qt.__binding__ == "PySide2":
|
|
from . import pyside2_resources as resources
|
|
elif Qt.__binding__ == "PyQt5":
|
|
from . import pyqt5_resources as resources
|
|
|
|
|
|
def qInitResources():
|
|
global resources
|
|
global initialized
|
|
if resources is not None and not initialized:
|
|
initialized = True
|
|
resources.qInitResources()
|
|
|
|
|
|
def qCleanupResources():
|
|
global resources
|
|
global initialized
|
|
if resources is not None:
|
|
initialized = False
|
|
resources.qCleanupResources()
|
|
|
|
|
|
__all__ = (
|
|
"resources",
|
|
"qInitResources",
|
|
"qCleanupResources"
|
|
)
|