summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2018-07-17 18:37:25 +0200
committerMichel Zou2018-07-17 18:37:25 +0200
commit5356edfc8f6fd3cb9ac37cb28c4d1415ac103bb4 (patch)
treef55c55e8d018946654d43e448834e21c6203356e
parent4432c1ce44445238515afb86d7b272a3465dbcc2 (diff)
downloadaur-mingw-w64-python2-bin.tar.gz
PYTHONPATH
-rw-r--r--wine-python.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/wine-python.sh b/wine-python.sh
index 19bb168e7b9..83601211eb5 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 "$@"