# HG changeset patch # User edouard # Date 1260436417 -3600 # Node ID c78246f3b85b4bb7a4fcb939f8ab05205e52d00c # Parent ed7f72fc785f3f02d269bb5f22b1d37970ee76b2 LPC src directory copy fix diff -r ed7f72fc785f -r c78246f3b85b 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)