Jonothan Farr writes: > 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 :-(.