LPCBeremiz.py
changeset 498 c78246f3b85b
parent 494 9e4263099427
child 501 d7bf56b036a8
--- 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)