summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-01-02 15:00:05 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2009-01-02 15:00:05 (GMT)
commitabcc168c69868c447dc976841ce1978f2298d4a0 (patch)
tree4b802bdcb1d8a525c1c2937b64eee8a996ad4a55 /Lib/plat-mac
parent919697cefe91af067d46f5971048067403ffdc05 (diff)
downloadcpython-abcc168c69868c447dc976841ce1978f2298d4a0.zip
cpython-abcc168c69868c447dc976841ce1978f2298d4a0.tar.gz
cpython-abcc168c69868c447dc976841ce1978f2298d4a0.tar.bz2
Fix for issue 1149804
Diffstat (limited to 'Lib/plat-mac')
-rw-r--r--Lib/plat-mac/macostools.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/Lib/plat-mac/macostools.py b/Lib/plat-mac/macostools.py
index d7724fa..337cc7f 100644
--- a/Lib/plat-mac/macostools.py
+++ b/Lib/plat-mac/macostools.py
@@ -62,7 +62,14 @@ def mkdirs(dst):
if os.sep == ':' and not ':' in head:
head = head + ':'
mkdirs(head)
- os.mkdir(dst, 0777)
+
+ try:
+ os.mkdir(dst, 0777)
+ except OSError, e:
+ # be happy if someone already created the path
+ if e.errno != errno.EEXIST:
+ raise
+
def touched(dst):
"""Tell the finder a file has changed. No-op on MacOSX."""