Message2066
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'
>>> |
|
Date |
User |
Action |
Args |
2008-02-20 17:18:10 | admin | link | issue1879984 messages |
2008-02-20 17:18:10 | admin | create | |
|