ui2py.sh: If argument is passed generate py from argument
This commit is contained in:
parent
03fc939fdf
commit
bd4b883109
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue