Jonothan Farr writes:
That's a good point. Although, your patch actually does the backslash
replacement regardless of whether the drive specification is present.
How about this:
+drive,rest=os.path.splitdrive(path)
+if drive:
+path = string.replace(rest,
How about this:
+drive,rest=os.path.splitdrive(path)
+if drive:
+path = string.replace(rest, '\\', '/')
Oops, looks like this doesn't work after all. The Linux version of
splitdrive doesn't actually do the split :-(.
Doh! Looks like we'll need to roll our
This is a known bug. Thanks for the patch. The problem with it is that
filenames
containing backslash characters are valid on Unix. I haven't been able to
come
up with a solution to this. Any ideas?
That's why I check for a file name that starts with a letter followed
by a colon (hmm,