[Zodb-checkins] CVS: ZODB3/ZEO - mkzeoinst.py:1.8

Guido van Rossum guido@python.org
Thu, 23 Jan 2003 07:51:22 -0500


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

Modified Files:
	mkzeoinst.py 
Log Message:
which(): absolutize path if necessary.


=== ZODB3/ZEO/mkzeoinst.py 1.7 => 1.8 ===
--- ZODB3/ZEO/mkzeoinst.py:1.7	Wed Jan 22 20:04:15 2003
+++ ZODB3/ZEO/mkzeoinst.py	Thu Jan 23 07:51:17 2003
@@ -143,6 +143,8 @@
     for dir in binpath:
         path = os.path.join(dir, program)
         if os.path.isfile(path) and os.access(path, os.X_OK):
+            if not os.path.isabs(path):
+                path = os.path.abspath(path)
             return path
     raise IOError, "can't find %r on path %r" % (program, strpath)