Message12752
E:\>c:\jython2.7.2b2\bin\jython.exe
Jython 2.7.2b2 (v2.7.2b2:b9b60766cabe, Nov 1 2019, 07:46:45)
[Java HotSpot(TM) Client VM (Oracle Corporation)] on java1.8.0_231
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.abspath(r'foo\bar')
'E:\\foo\\bar'
>>> os.path.abspath(r'\foo\bar')
'\\foo\\bar'
>>>
With CPython and with Jython 2.7.0 also the latter result has the drive letter. |
|
Date |
User |
Action |
Args |
2019-11-04 19:25:49 | pekka.klarck | set | recipients:
+ pekka.klarck |
2019-11-04 19:25:49 | pekka.klarck | set | messageid: <1572895549.6.0.64475848398.issue2824@roundup.psfhosted.org> |
2019-11-04 19:25:49 | pekka.klarck | link | issue2824 messages |
2019-11-04 19:25:49 | pekka.klarck | create | |
|