Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d64845d

Browse files
committed
Mkdirs() failed when provided with unix pathnames. Fixed.
1 parent 6681de2 commit d64845d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Mac/Lib/macostools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def mkdirs(dst):
5555
if dst == '' or os.path.exists(dst):
5656
return
5757
head, tail = os.path.split(dst)
58-
if not ':' in head:
58+
if os.sep == ':' and not ':' in head:
5959
head = head + ':'
6060
mkdirs(head)
6161
os.mkdir(dst, 0777)

0 commit comments

Comments
 (0)