From: garyo Date: Sat, 31 Jan 2009 23:02:08 +0000 (+0000) Subject: Additional fix for issue #1249 (Mkdir fails if dir exists) on Windows. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7ed1cb7e9aa812bc266c42607a45dcd7b93c6b57;p=scons.git Additional fix for issue #1249 (Mkdir fails if dir exists) on Windows. git-svn-id: http://scons.tigris.org/svn/scons/trunk@3941 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Defaults.py b/src/engine/SCons/Defaults.py index 4a1bcde8..2b4b967e 100644 --- a/src/engine/SCons/Defaults.py +++ b/src/engine/SCons/Defaults.py @@ -225,7 +225,8 @@ def mkdir_func(dest): os.makedirs(str(entry)) except os.error, e: p = str(entry) - if e[0] == errno.EEXIST and os.path.isdir(str(entry)): + if (e[0] == errno.EEXIST or (sys.platform=='win32' and e[0]==183)) \ + and os.path.isdir(str(entry)): pass # not an error if already exists else: raise