Diff of /examples/testexamples [c9dde1] .. [e23356]  Maximize  Restore

Switch to side-by-side view

--- a/examples/testexamples
+++ b/examples/testexamples
@@ -11,6 +11,18 @@
 ERRORFILES="/tmp/testexamples.$$"
 
 PYTHON="python2.5 -Wd"
+
+# Go to examples directory:
+cd `dirname "$0"`
+
+# Add parent directory to PYTHONPATH:
+parent_dir=$(dirname $(pwd))
+if [ "$PYTHONPATH" ]
+then
+    export PYTHONPATH="$parent_dir:$PYTHONPATH"
+else
+    export PYTHONPATH="$parent_dir"
+fi
 
 if [ $# -ge 2 -a "x$1" = x-p ]
 then