Update of /cvsroot/webware/Webware/MiddleKit/Tests
In directory sc8-pr-cvs1:/tmp/cvs-serv28014/Tests
Modified Files:
FixPath.py
Log Message:
- normalize the path a bit more. required on some platforms
Index: FixPath.py
===================================================================
RCS file: /cvsroot/webware/Webware/MiddleKit/Tests/FixPath.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** FixPath.py 3 May 2002 00:34:56 -0000 1.3
--- FixPath.py 6 Nov 2003 08:53:58 -0000 1.4
***************
*** 10,13 ****
--- 10,19 ----
# We're located at .../MiddleKit/Run/Tests/Test.py.
import os, sys
+
+ # this very next fix makes the MK test suite work for me (using Python 2.3.2, Webware CVS post 0.8, Windows XP Pro SP1)
+ if sys.path[0] not in ('', '.'):
+ sys.path.insert(0, '')
+
+ # now make the fix referenced in the doc string
if sys.path and sys.path[0]=='':
index = 1
|