beremiz

LPC src directory copy fix

2009-12-10, edouard
c78246f3b85b
Parents ed7f72fc785f
Children d7bf56b036a8
LPC src directory copy fix
--- 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)