b958f5b446
* working base with merged ui repo * include project search * widgets * working cards * remove .pyc files * again * add gitignore * nice hovers * interactive background working * beautiful search * working widgets * optimized * project query * all working * models show up but only from the last stream * fixed models * cleaner * model search moved * add models * UI models and bindings * rearrangement * moved folder * cleanup * rearrange * rename1 * rename2 * cleanup * rename1 * rename2 * hide old ui * bindings added * rename * still works * works * works except resize * project scroll working * scroll down * load button fixed * emit sender card to dockwidget * models cards added * model cards recognized * resize * publish works * cards created in the right order * fix order * styling * perfect model card * visuals * remove widget btn * publish button to the bottom * add and remove model cards faster * remove old code * stretch cards
16 lines
557 B
Python
16 lines
557 B
Python
import subprocess
|
|
import sys
|
|
|
|
IS_WIN32 = 'win32' in str(sys.platform).lower()
|
|
|
|
|
|
def subprocess_call(*args, **kwargs):
|
|
#also works for Popen. It creates a new *hidden* window, so it will work in frozen apps (.exe).
|
|
if IS_WIN32:
|
|
startupinfo = subprocess.STARTUPINFO()
|
|
startupinfo.dwFlags = subprocess.CREATE_NEW_CONSOLE | subprocess.STARTF_USESHOWWINDOW
|
|
startupinfo.wShowWindow = subprocess.SW_HIDE
|
|
kwargs['startupinfo'] = startupinfo
|
|
retcode = subprocess.call(*args, **kwargs)
|
|
print(retcode)
|
|
return retcode |