ui2py.sh: If argument is passed generate py from argument
This commit is contained in:
parent
03fc939fdf
commit
bd4b883109
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ ! -z "${1}" ]; then
|
||||||
|
echo "Generating python file for ${1}"
|
||||||
|
pyuic5 "${1}" -x -o "${1%.ui}.py"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
cwd="$(pwd)"
|
cwd="$(pwd)"
|
||||||
cd "$(dirname "$0")"/.. || exit
|
cd "$(dirname "$0")"/.. || exit
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue