Strange "feature" involving double slashes in Win98
peter at engcorp.com
Tue Sep 14 22:43:46 CEST 2004
Diez B. Roggisch wrote:
>>Well, that's the problem. What's I'm supposed to do?
> Maybe you can go for applying os.path.join and os.path.normpath to all
> user-specified paths? I don't have windows, so I can't say how
> os.path.normpath('c://foo') behaves, but maybe its does do the job.
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
Seems that normpath isn't up to the job, but abspath would be... if
it doesn't cause other problems. Since we're inherently dealing
with absolute paths for this problem, maybe it's adequate?
More information about the Python-list