+ old_srcdir = self.infos.get("OLD_SOURCES_PATH", None)
+ sources_dir = self.infos["SOURCES_PATH"]
+ return maindir, srcdir, prjdir, hwdir, cfgdir, sources_dir, old_srcdir
+
+ def _createDirectory(self, directory):
+ if not directory:
+ return
+ if os.path.isdir(directory):
+ shutil.rmtree(directory, True)
+ os.makedirs(directory)
+
+ def _copySources(self, origin, destination):
+ # If not in editing mode it copies all the bertos sources in the /bertos subdirectory of the project
+ shutil.rmtree(destination, True)
+ copytree.copytree(origin + "/bertos", destination, ignore_list=const.IGNORE_LIST)
+
+ def _mergeSources(self, origin, destination, old_sources_dir):
+ if old_sources_dir:
+ mergeSources(destination, origin, old_sources_dir)