python-qt5/pyuic5.sh
2017-01-27 07:37:02 -06:00

8 lines
183 B
Bash

#!/bin/sh
@PYTHON3@ -c "import PyQt5.uic.pyuic" &> /dev/null
if [ $? -eq 0 ]; then
exec @PYTHON3@ -m PyQt5.uic.pyuic ${1+"$@"}
else
exec @PYTHON2@ -m PyQt5.uic.pyuic ${1+"$@"}
fi