예제 #1
0
파일: lib.py 프로젝트: linez69/pyblish
def show():
    if self._has_integration:
        return pyblish_integration.show()
    else:
        return sys.stderr.write("GUI requires pyblish-integration.\n")
예제 #2
0
def show():
    pyblish_integration.show()
예제 #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()
예제 #4
0
파일: lib.py 프로젝트: linez69/pyblish
def show():
    if self._has_integration:
        return pyblish_integration.show()
    else:
        return sys.stderr.write("GUI requires pyblish-integration.\n")
예제 #5
0
파일: lib.py 프로젝트: linez69/pyblish
def show():
    pyblish_integration.show()