python-qt5/pylupdate5.sh

9 lines
268 B
Bash
Raw Normal View History

2017-01-27 13:34:22 +00:00
#!/bin/sh
@PYTHON3@ -Ic "import PyQt5.pylupdate_main" &> /dev/null
2017-01-27 13:34:22 +00:00
if [ $? -eq 0 ]; then
exec @PYTHON3@ -Im PyQt5.pylupdate_main ${1+"$@"}
2017-01-27 13:34:22 +00:00
else
exec @PYTHON2@ -c "import sys; del sys.path[0]; import PyQt5.pylupdate_main; PyQt5.pylupdate_main.main()" ${1+"$@"}
2017-01-27 13:34:22 +00:00
fi