changeset 501 | d7bf56b036a8 |
parent 500 | af7c28de4cc7 |
parent 498 | c78246f3b85b |
child 503 | 4c0cd5e54e1b |
--- a/LPCBeremiz.py Thu Dec 10 12:30:49 2009 +0100 +++ b/LPCBeremiz.py Thu Dec 10 12:31:42 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)