ProjectController.py
changeset 2506 8dbdf20f795b
parent 2505 3487fd4fb9bf
child 2512 69cef4e37ef9
--- a/ProjectController.py	Mon Jan 14 12:17:48 2019 +0300
+++ b/ProjectController.py	Mon Jan 14 12:30:32 2019 +0300
@@ -40,6 +40,7 @@
 from datetime import datetime
 from weakref import WeakKeyDictionary
 from functools import reduce
+from distutils.dir_util import copy_tree
 from six.moves import xrange
 
 import wx
@@ -574,8 +575,8 @@
                 old_projectfiles_path = self._getProjectFilesPath(
                     from_project_path)
                 if os.path.isdir(old_projectfiles_path):
-                    shutil.copytree(old_projectfiles_path,
-                                    self._getProjectFilesPath(self.ProjectPath))
+                    copy_tree(old_projectfiles_path,
+                              self._getProjectFilesPath(self.ProjectPath))
             self.SaveXMLFile(os.path.join(self.ProjectPath, 'plc.xml'))
             result = self.CTNRequestSave(from_project_path)
             if result: