[Zope-Checkins] SVN: Zope/trunk/test.py Fixed to work in the
presence of symliked products or Products directory.
Florent Guillaume
fg at nuxeo.com
Fri Nov 19 08:53:55 EST 2004
Log message for revision 28476:
Fixed to work in the presence of symliked products or Products directory.
Changed:
U Zope/trunk/test.py
-=-
Modified: Zope/trunk/test.py
===================================================================
--- Zope/trunk/test.py 2004-11-18 23:02:49 UTC (rev 28475)
+++ Zope/trunk/test.py 2004-11-19 13:53:54 UTC (rev 28476)
@@ -380,11 +380,12 @@
self.cwd = os.path.realpath(os.getcwd())
# Hack again for external products.
if libdir:
- self.libdir = os.path.realpath(os.path.join(self.cwd, libdir))
+ self.libdir = os.path.join(self.cwd, libdir)
else:
- self.libdir = os.path.realpath(os.path.join(self.cwd, self.libdir))
- if self.libdir not in sys.path:
- sys.path.insert(0, self.libdir)
+ self.libdir = os.path.join(self.cwd, self.libdir)
+ real_libdir = os.path.realpath(self.libdir)
+ if real_libdir not in sys.path:
+ sys.path.insert(0, real_libdir)
# Determine where to look for tests
if test_dir:
self.testdir = os.path.abspath(os.path.join(self.cwd, test_dir))
More information about the Zope-Checkins
mailing list