os.join Windows action
Michael Hoffman
cam.ac.uk at mh391.invalid
Sat Mar 5 12:19:22 EST 2005
Colin J. Williams wrote:
> C:\XXX is required, C:XXX is not acceptable.
C:XXX is acceptable, it just means something entirely different from
C:\XXX. There is a current working directory on each drive. C:XXX is
file XXX in the current directory on drive C:.
> How should os.path.join('C:', 'ugh') be treated?
Exactly as it is? If you want other behavior, you want
os.path.join('C:\\', 'ugh').
--
Michael Hoffman
More information about the Python-list
mailing list