pyuic: fix QPyNullVariant exception

This commit is contained in:
Juergen E. Fischer 2015-12-02 09:18:32 +01:00
parent c2fb11c8d5
commit 7bab2e5036
2 changed files with 8 additions and 1 deletions

7
scripts/pyuic4-wrapper.py Executable file
View File

@ -0,0 +1,7 @@
try:
import sip
sip.setapi("QVariant", 2)
except:
pass
import PyQt4.uic.pyuic

View File

@ -7,4 +7,4 @@ shift 3
export LD_LIBRARY_PATH PYTHONPATH
$PYUIC4 $@
exec python $(dirname $0)/pyuic4-wrapper.py $@