LPCBeremiz.py
changeset 501 d7bf56b036a8
parent 500 af7c28de4cc7
parent 498 c78246f3b85b
child 503 4c0cd5e54e1b
equal deleted inserted replaced
500:af7c28de4cc7 501:d7bf56b036a8
   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):