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

Guido van Rossum guido@python.org
Mon, 20 Jan 2003 13:11:19 -0500


> Modified Files:
> 	start.py 
> Log Message:
> Merge from 2.0 branch:
> Fixed to correctly munge sys.path.
> 
> 
> === ZEO/ZEO/start.py 1.59 => 1.60 ===
> --- ZEO/ZEO/start.py:1.59	Fri Jan 17 11:39:20 2003
> +++ ZEO/ZEO/start.py	Mon Jan 20 13:05:50 2003
> @@ -22,7 +22,7 @@
>  import ThreadedAsync.LoopCallback
>  
>  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 == '.':

Florent, I don't understand this change.  Your checkin comment makes
no sense (the directory() function doesn't use sys.path, and it isn't
used in the context of sys.path either), and the code doesn't need
os.path.abspath(), because it already calls getcwd() when it runs out
of path elements.

What did you *intend* to do and say?

--Guido van Rossum (home page: http://www.python.org/~guido/)