xtquant.xttools
1#coding:utf-8 2 3def init_pyside2_path(): 4 try: 5 import os, PySide2 6 dirname = os.path.dirname(PySide2.__file__) 7 plugin_path = os.path.join(dirname, 'plugins', 'platforms') 8 os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = plugin_path 9 return True, None 10 except Exception as e: 11 return False, e
def
init_pyside2_path():