Strange "feature" involving double slashes in Win98
Carlos Ribeiro
carribeiro at gmail.com
Tue Sep 14 18:39:49 EDT 2004
On Tue, 14 Sep 2004 18:16:59 -0400, Peter Hansen <peter at engcorp.com> wrote:
> Do you have pywin32 (win32all) installed? Try this one instead:
>
> win32api.GetFullPathName('c://work')
>
> This does the same as abspath does above, on mine. I ask because
> of stuff in ntpath.py which appears to be calling the equivalent
> of that instead of the normpath(join(getcwd(), path)) approach that
> the docs note is equivalent...
You're right. That's what I got now:
PythonWin 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit
(Intel)] on win32.
Portions Copyright 1994-2001 Mark Hammond (mhammond at skippinet.com.au)
- see 'Help/About PythonWin' for further copyright information.
>>> import win32api
>>> win32api.GetFullPathName('c://work')
'c:\\\\work'
It seems that either ActivePython uses a different implementation for
os.abspath(), or the code changed between 2.3.2 and 2.3.4. The last
time I checked ActivePython was still using 2.3.2 -- I'll check it out
again, and upgrade if a newer version is available.
--
Carlos Ribeiro
Consultoria em Projetos
blog: http://rascunhosrotos.blogspot.com
blog: http://pythonnotes.blogspot.com
mail: carribeiro at gmail.com
mail: carribeiro at yahoo.com
More information about the Python-list
mailing list