From: Jack Jansen Date: Sat, 3 Aug 2002 20:49:10 +0000 (+0000) Subject: Mkdirs() failed when provided with unix pathnames. Fixed. X-Git-Tag: v2.3c1~4742 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d64845dbbec63c44a0a23b558b3cfe12dbc495fc;p=thirdparty%2FPython%2Fcpython.git Mkdirs() failed when provided with unix pathnames. Fixed. --- diff --git a/Mac/Lib/macostools.py b/Mac/Lib/macostools.py index 43ab74fb7760..ca0c7c6dfd9a 100644 --- a/Mac/Lib/macostools.py +++ b/Mac/Lib/macostools.py @@ -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)