path.startswith(dir)?

Magnus Lie Hetland mlh at vier.idi.ntnu.no
Sat May 11 14:49:14 EDT 2002


In article <3CDD6518.3010707 at dittmar.net>, Daniel Dittmar wrote:
[snip]
>On Windows:
> >>> os.path.abspath ('.')
>'H:\\Perforce'
> >>> os.path.abspath ('h:\\perforce')
>'h:\\perforce'
>
>You'll have to add a os.path.normcase into the mix.

Ah... Perhaps os.path.commonprefix is better after all...

>Daniel

--
Magnus Lie Hetland                                  The Anygui Project
http://hetland.org                                  http://anygui.org



More information about the Python-list mailing list