Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os, os.path
- import sys
- import subprocess
- file = sys.argv[1]
- if file.endswith('.ui'):
- print subprocess.call(['pyside-uic', '-o', '%s_ui.py' %
- os.path.splitext(file)[0], file])
- else:
- print 'Not an ui-file!'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement