Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 32 lines (22 sloc) 1.36 KB
#!/usr/bin/env python3
"""Author: Victor Varvariuc <>"""
import os, sys, subprocess
curDir = os.path.dirname(os.path.abspath(__file__))
params = list(sys.argv) # copy list
params[0] = 'designer'
widgetsDir = os.path.join(curDir, 'wic', 'widgets')
# path for python custom widgets and plugins for designer
os.putenv('PYQTDESIGNERPATH', widgetsDir)
#os.putenv('PATH', os.getenv('PATH', '') + ';' + os.path.dirname(sys.executable)) #
retcode = subprocess.Popen(params)
>The PYQTDESIGNERPATH environment variable specifies the set of directories to search for plugins.
Directory names are separated by a path separator (a semi-colon on Windows and a colon on other platforms).
If a directory name is empty (ie. there are consecutive path separators or a leading or trailing path
separator) then a set of default directories is automatically inserted at that point.
The default directories are the python subdirectory of each directory that Designer
searches for its own plugins. If the environment variable is not set then only the default
directories are searched. If a file's basename does not end with plugin then it is ignored.