LPCBeremiz.py
changeset 498 c78246f3b85b
parent 494 9e4263099427
child 501 d7bf56b036a8
equal deleted inserted replaced
497:ed7f72fc785f 498:c78246f3b85b
   345     for i in os.listdir(src):
   345     for i in os.listdir(src):
   346         if not i.startswith('.'):
   346         if not i.startswith('.'):
   347             srcpath = os.path.join(src,i)
   347             srcpath = os.path.join(src,i)
   348             dstpath = os.path.join(dst,i)
   348             dstpath = os.path.join(dst,i)
   349             if os.path.isdir(srcpath):
   349             if os.path.isdir(srcpath):
   350                 os.makedirs(dstpath)
   350                 if not os.path.exists(dstpath):
       
   351                     os.makedirs(dstpath)
   351                 mycopytree(srcpath, dstpath)
   352                 mycopytree(srcpath, dstpath)
   352             elif os.path.isfile(srcpath):
   353             elif os.path.isfile(srcpath):
   353                 shutil.copy2(srcpath, dstpath)
   354                 shutil.copy2(srcpath, dstpath)
   354 
   355 
   355 class LPCPluginsRoot(PluginsRoot):
   356 class LPCPluginsRoot(PluginsRoot):