summarylogtreecommitdiffstats
path: root/wine-python.sh
diff options
context:
space:
mode:
authorMichel Zou2018-07-17 18:35:11 +0200
committerMichel Zou2018-07-17 18:35:11 +0200
commite90e756d52124599b4e3819af1dfbe7501962b4f (patch)
tree3c79a8a137498c94569dbbfa2886627dc415238d /wine-python.sh
parent4eda9dcd35b38cbb68653adc1b1baa1e8f989bd4 (diff)
downloadaur-mingw-w64-python-bin.tar.gz
PYTHONPATH
Diffstat (limited to 'wine-python.sh')
-rw-r--r--wine-python.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/wine-python.sh b/wine-python.sh
index 19bb168e7b95..83601211eb50 100644
--- a/wine-python.sh
+++ b/wine-python.sh
@@ -3,6 +3,12 @@
set -e
export PYTHONHOME=/usr/@TRIPLE@
-export PYTHONPATH=/usr/@TRIPLE@/lib/python@PYVER@
+
+if test -z "${PYTHONPATH}"
+then
+ export PYTHONPATH=/usr/@TRIPLE@/lib/python@PYVER@
+else
+ export PYTHONPATH="${PYTHONPATH};/usr/@TRIPLE@/lib/python@PYVER@"
+fi
@TRIPLE@-wine /usr/@TRIPLE@/bin/python@PYVER@.exe "$@"