Skip to content

Commit 7bab2e5

Browse files
committed
pyuic: fix QPyNullVariant exception
1 parent c2fb11c commit 7bab2e5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

scripts/pyuic4-wrapper.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
try:
2+
import sip
3+
sip.setapi("QVariant", 2)
4+
except:
5+
pass
6+
7+
import PyQt4.uic.pyuic

scripts/pyuic4-wrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ shift 3
77

88
export LD_LIBRARY_PATH PYTHONPATH
99

10-
$PYUIC4 $@
10+
exec python $(dirname $0)/pyuic4-wrapper.py $@

0 commit comments

Comments
 (0)