testutils.py: make setOutDir put testsFolder parent on path
authorrgbecker
Thu, 22 Jan 2009 16:53:05 +0000
changeset 3076 6a959200100d
parent 3075 5175c093a0dd
child 3077 8542d01f0c34
testutils.py: make setOutDir put testsFolder parent on path
src/reportlab/lib/testutils.py
--- a/src/reportlab/lib/testutils.py	Thu Jan 22 16:51:24 2009 +0000
+++ b/src/reportlab/lib/testutils.py	Thu Jan 22 16:53:05 2009 +0000
@@ -67,6 +67,8 @@
             testsFolder = os.path.abspath(scriptDir)
         else:
             testsFolder = None
+    if testsFolder:
+        sys.path.insert(0,os.path.dirname(testsFolder))
     return _OUTDIR
 
 def outputfile(fn):