summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-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 "$@"