[Zope-Coders] Re: [Zope-Checkins] CVS: Zope/inst - setup.py:1.1.2.2
Guido van Rossum
guido@python.org
Sun, 06 Oct 2002 07:43:50 -0400
> You probably want to test for absence of os.path.abspath rather than
> Win32. Also, a better fallback is this:
>
> def abspath(path):
> if not os.path.isabs(path):
> return os.path.join(os.getcwd(), path)
Actually, it should call os.path.normpath() on the result in either
case.
But since ChrisM retracted the change, that's a theoretical
improvement only. :-)
--Guido van Rossum (home page: http://www.python.org/~guido/)