Diff of /doc/testdocs [e6e990] .. [c237fe] Maximize Restore

  Switch to side-by-side view

--- a/doc/testdocs
+++ b/doc/testdocs
@@ -13,11 +13,26 @@
 
 PYTHON="python3.0 -Wd"
 
+# Go to doc 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
     PYTHON="$2"
     shift 2
 fi
+
+# Generate __init__.pyc so source/knowledge_bases/special.txt doesn't fail...
+$PYTHON -c 'import __init__'
 
 > $ERRORFILES
 NUM_ERRORS=0