Message1474
See the example below. Note that d drive on my WinXP is a CD drive and I don't have r drive at all.
C:\>d:
The device is not ready.
C:\>r:
The system cannot find the drive specified.
C:\>jython
Jython 2.2b1 on java1.5.0_10 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.abspath('foo')
'C:\\foo'
>>> os.path.abspath('r:\\foo')
'R:\\foo'
>>> os.path.abspath('d:\\foo')
Traceback (innermost last):
File "<console>", line 1, in ?
File "C:\jython2.2b1\Lib\javapath.py", line 240, in abspath
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Unknown Source)
at java.io.File.getCanonicalPath(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
at java.lang.reflect.Method.invoke(Unknown Source)
java.io.IOException: java.io.IOException: The device is not ready
>>>
C:\>python
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.abspath('foo')
'C:\\foo'
>>> os.path.abspath('r:\\foo')
'r:\\foo'
>>> os.path.abspath('d:\\foo')
'd:\\foo'
|
|
Date |
User |
Action |
Args |
2008-02-20 17:17:44 | admin | link | issue1661700 messages |
2008-02-20 17:17:44 | admin | create | |
|