Ejemplo n.º 1
0
def show():
    if self._has_integration:
        return pyblish_integration.show()
    else:
        return sys.stderr.write("GUI requires pyblish-integration.\n")
Ejemplo n.º 2
0
def show():
    pyblish_integration.show()
Ejemplo n.º 3
0
import os
import time
import threading

import pyblish_integration


if os.environ['PYBLISHPLUGINPATH'] != os.environ['ASSETMANAGERPLUGINPATH']:
    os.environ['PYBLISHPLUGINPATH_BACKUP'] = os.environ['PYBLISHPLUGINPATH']

os.environ['PYBLISHPLUGINPATH'] = os.environ['ASSETMANAGERPLUGINPATH']

pyblish_integration.show()

def reset_environment():
    time.sleep(10)

    os.environ['PYBLISHPLUGINPATH'] = os.environ['PYBLISHPLUGINPATH_BACKUP']

thread = threading.Thread(target=reset_environment, args=())
thread.daemon = True
thread.start()
Ejemplo n.º 4
0
def show():
    if self._has_integration:
        return pyblish_integration.show()
    else:
        return sys.stderr.write("GUI requires pyblish-integration.\n")
Ejemplo n.º 5
0
def show():
    pyblish_integration.show()