[Zope-Checkins] CVS: Zope - test.py:1.2.2.16
Florent Guillaume
fg at nuxeo.com
Fri Nov 19 08:49:00 EST 2004
Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv20719
Modified Files:
Tag: Zope-2_7-branch
test.py
Log Message:
Fixed to work in the presence of symliked products or Products directory.
=== Zope/test.py 1.2.2.15 => 1.2.2.16 ===
--- Zope/test.py:1.2.2.15 Sat Oct 30 04:29:22 2004
+++ Zope/test.py Fri Nov 19 08:48:59 2004
@@ -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