tests/testlib/pythonpath.sh
branchstable
changeset 4332 9980df8eda98
parent 2046 994d81caec68
child 4336 33fc61e5e119
--- a/tests/testlib/pythonpath.sh	Mon Dec 24 18:36:25 2018 +0100
+++ b/tests/testlib/pythonpath.sh	Fri Jan 04 18:46:46 2019 -0500
@@ -1,9 +1,14 @@
 # utility to setup pythonpath to point into the tested repository
 
-export SRCDIR=`dirname $TESTDIR`
+export SRCDIR="`dirname $TESTDIR`"
 if [ -n "$PYTHONPATH" ]; then
     export HGTEST_ORIG_PYTHONPATH=$PYTHONPATH
-    export PYTHONPATH=$SRCDIR:$PYTHONPATH
+    osname="`uname -o`"
+    if (uname -o | grep -q Msys); then
+        export PYTHONPATH="$SRCDIR;$PYTHONPATH"
+    else
+        export PYTHONPATH=$SRCDIR:$PYTHONPATH
+    fi
 else
     export PYTHONPATH=$SRCDIR
 fi