Skip to content

Commit

Permalink
pyuic: fix QPyNullVariant exception
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Dec 2, 2015
1 parent c2fb11c commit 7bab2e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions scripts/pyuic4-wrapper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
try:
import sip
sip.setapi("QVariant", 2)
except:
pass

import PyQt4.uic.pyuic
2 changes: 1 addition & 1 deletion scripts/pyuic4-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ shift 3

export LD_LIBRARY_PATH PYTHONPATH

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

0 comments on commit 7bab2e5

Please sign in to comment.