]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Mkdirs() failed when provided with unix pathnames. Fixed.
authorJack Jansen <jack.jansen@cwi.nl>
Sat, 3 Aug 2002 20:49:10 +0000 (20:49 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sat, 3 Aug 2002 20:49:10 +0000 (20:49 +0000)
Mac/Lib/macostools.py

index 43ab74fb7760600745f9cb3e0144689b321d67b3..ca0c7c6dfd9afa1031978b9c05eb4123e28ab8a6 100644 (file)
@@ -55,7 +55,7 @@ def mkdirs(dst):
        if dst == '' or os.path.exists(dst):
                return
        head, tail = os.path.split(dst)
-       if not ':' in head:
+       if os.sep == ':' and not ':' in head:
                head = head + ':'
        mkdirs(head)
        os.mkdir(dst, 0777)