[Zope-Checkins] CVS: ZEO/ZEO - start.py:1.45.6.5

Florent Guillaume fg@nuxeo.com
Tue, 21 Jan 2003 07:33:23 -0500


Update of /cvs-repository/ZEO/ZEO
In directory cvs.zope.org:/tmp/cvs-serv28932

Modified Files:
      Tag: ZODB3-3_1-branch
	start.py 
Log Message:
Merge from HEAD into correct branch (ZEO-2_0-branch is defunct):

Fixed to ensure directory() always returns an absolute path, and thus
correctly works when used to munge sys.path.
As this file is now deprecated, only do a minimal fix.


=== ZEO/ZEO/start.py 1.45.6.4 => 1.45.6.5 ===
--- ZEO/ZEO/start.py:1.45.6.4	Mon Jan 20 16:54:26 2003
+++ ZEO/ZEO/start.py	Tue Jan 21 07:33:20 2003
@@ -21,7 +21,7 @@
 import socket
 
 def directory(p, n=1):
-    d = p
+    d = os.path.abspath(p)
     while n:
         d = os.path.split(d)[0]
         if not d or d == '.':