From 3c80892b86470483f14d0b3e9e1b13186d8410db Mon Sep 17 00:00:00 2001 From: Benau Date: Sun, 31 May 2020 12:01:47 +0800 Subject: [PATCH] Allow specifying python version in update_pot.sh --- data/po/update_pot.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/po/update_pot.sh b/data/po/update_pot.sh index 94f42a4bc..2137647cb 100755 --- a/data/po/update_pot.sh +++ b/data/po/update_pot.sh @@ -1,6 +1,9 @@ # run this script from the root directory to re-generate the .pot file # # ./data/po/update_pot.sh +if [ -z "$PYTHON" ]; then + PYTHON="python" +fi CPP_FILE_LIST="`find ./src \ -name '*.cpp' -or \ @@ -40,7 +43,7 @@ echo "--------------------" echo $XML_FILE_LIST # XML Files -python ./data/po/extract_strings_from_XML.py $XML_FILE_LIST +eval '$PYTHON ./data/po/extract_strings_from_XML.py $XML_FILE_LIST'