Message1477
No more exceptions if you apply the patch I provided to #1648449 (os.path.normcase broken in Windows).
Problem is os.path is really either dospath, macpath, ntpath, posixpath -- in CPython.
In Jython, ...\Lib\javaos.py was always unconditionally loading javapath (a Jython creation):
import javapath as path
and javapath's isabs() test is very different from ntpath -- javapath calls File(path).isAbsolute() which appears to touch the file system whereas ntpath's isabs() just calls splitdrive() and does a simple string test.
In short, javapath does a 'live' test dependent on the state of the underlying OS at that moment, whereas ntpath does a definitional test (does the path meet Windows' criteria for an absolute pathname).
NOTE: isabs() is a definitional test in all CPython flavors, independent of the current state of the underlying OS. Check dospath, macpath, ntpath and posixpath. Only javapath relies on the current state of the OS.
Needless to say, I prefer my patch to load ${os}path.py :-) |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:44 | admin | link | issue1661700 messages |
2008-02-20 17:17:44 | admin | create | |
|