From bd4b883109d72e243951e4748779a257905f5c9d Mon Sep 17 00:00:00 2001 From: Stelios Tsampas Date: Thu, 2 Dec 2021 20:13:57 +0200 Subject: [PATCH] ui2py.sh: If argument is passed generate py from argument --- scripts/ui2py.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/ui2py.sh b/scripts/ui2py.sh index c2f0e899..a6e2a2db 100755 --- a/scripts/ui2py.sh +++ b/scripts/ui2py.sh @@ -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