LPC src directory copy fix
authoredouard
Thu, 10 Dec 2009 10:13:37 +0100
changeset 498 c78246f3b85b
parent 497 ed7f72fc785f
child 501 d7bf56b036a8
LPC src directory copy fix
LPCBeremiz.py
--- a/LPCBeremiz.py	Thu Dec 10 10:12:28 2009 +0100
+++ b/LPCBeremiz.py	Thu Dec 10 10:13:37 2009 +0100
@@ -347,7 +347,8 @@
             srcpath = os.path.join(src,i)
             dstpath = os.path.join(dst,i)
             if os.path.isdir(srcpath):
-                os.makedirs(dstpath)
+                if not os.path.exists(dstpath):
+                    os.makedirs(dstpath)
                 mycopytree(srcpath, dstpath)
             elif os.path.isfile(srcpath):
                 shutil.copy2(srcpath, dstpath)