Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Jakimow
EO Time Series Viewer
Commits
9baa0116
Commit
9baa0116
authored
Mar 01, 2012
by
Luke Campagnola
Browse files
added script for rebuilding ui files for pyside
parent
4c525ffa
Changes
1
Hide whitespace changes
Inline
Side-by-side
rebuildUi.py
0 → 100644
View file @
9baa0116
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment