1
0
Fork 0
mirror of synced 2024-06-24 17:20:23 +12:00

ui2py.sh: If argument is passed generate py from argument

This commit is contained in:
Stelios Tsampas 2021-12-02 20:13:57 +02:00
parent 03fc939fdf
commit bd4b883109
No known key found for this signature in database
GPG key ID: 2FAEBF7B5BE5FD7C

View file

@ -1,5 +1,11 @@
#!/bin/sh
if [ ! -z "${1}" ]; then
echo "Generating python file for ${1}"
pyuic5 "${1}" -x -o "${1%.ui}.py"
exit 0
fi
cwd="$(pwd)"
cd "$(dirname "$0")"/.. || exit