Commit 9baa0116 authored by Luke Campagnola's avatar Luke Campagnola
Browse files

added script for rebuilding ui files for pyside

parent 4c525ffa
import os, sys
## run "python rebuildUi.py pyside" to rebuild all ui files for pyside
uic = 'pyuic4'
if len(sys.argv) > 1 and sys.argv[1] == 'pyside':
uic = 'pyside-uic'
for path, sd, files in os.walk('.'):
for f in files:
base, ext = os.path.splitext(f)
if ext != '.ui':
continue
ui = os.path.join(path, f)
py = os.path.join(path, base + '.py')
os.system('%s %s > %s' % (uic, ui, py))
print py
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment