Message2066

Author billiejoex
Recipients
Date 2008-01-25.20:41:21
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
On Windows "\\" is an alias for the current drive letter. For example: if the current working directory is D:\Documents, os.path.realpath("\\") on CPython correctly returns "D:\\".
This doesn't happen on Jython:


C:\Python23>python.exe
Python 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getcwd()
'C:\\dist'
>>> os.path.realpath('\\')
'C:\\'
>>>


C:\dist>jython.bat
Jython 2.3a0 on java1.6.0_04
Type "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getcwd()
'C:\\dist'
>>> os.path.realpath('\\')
'C:\\dist'
>>>
History
Date User Action Args
2008-02-20 17:18:10adminlinkissue1879984 messages
2008-02-20 17:18:10admincreate