Attempt to fix a bug related to BeRTOS upgrade in Wizard
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 8 Sep 2009 17:32:45 +0000 (17:32 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 8 Sep 2009 17:32:45 +0000 (17:32 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2910 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index f509a4c2430055680334b2856fc9994389ee6fe8..363b08b5e182e5e1f5573aa04ce27336cfff9e8d 100644 (file)
@@ -113,7 +113,7 @@ def mergeSources(srcdir, new_sources, old_sources):
     # TODO: implement the three way merge algorithm
     #
     shutil.rmtree(srcdir, True)
-    copytree.copytree(sources_dir + "/bertos", srcdir, ignore_list=const.IGNORE_LIST)
+    copytree.copytree(os.path.join(new_sources, "bertos"), srcdir, ignore_list=const.IGNORE_LIST)
 
 def projectFileGenerator(project_info):
     directory = project_info.info("PROJECT_PATH")