[Python-Dev] patch for os.path.commonprefix (changes semantics - pls review)

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Sun, 9 Jul 2000 19:48:41 +0200

skip wrote:
> Also, since the version in ntpath.py was the same as the version in
> posixpath.py I modified both, replacing "/" with os.sep (is that =

see my comment on the site

(in short: you should split on either os.sep or os.altsep, or normalize
before splitting.  and don't forget UNC names: \\machine\directory...).