Save the current BERTOS_PATH in editing mode (instead of override it with the local...
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 3 May 2010 13:05:38 +0000 (13:05 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 3 May 2010 13:05:38 +0000 (13:05 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3595 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 1aeaef7a78c0c29bb74fae1095a735b90b532141..c2de0045ba4aab2a31b41390bd04affebd698432 100644 (file)
@@ -115,6 +115,9 @@ def projectFileGenerator(project_info):
         # For presets save again the BERTOS_PATH into project file
         project_data["PRESET"] = True
         project_data["BERTOS_PATH"] = relpath.relpath(project_info.info("BERTOS_PATH"), directory)
+    elif project_info.edit:
+        # If in editing mode the BERTOS_PATH is maintained
+        project_data["BERTOS_PATH"] = relpath.relpath(project_info.info("BERTOS_PATH"), directory)
     else:
         # Use the local BeRTOS version instead of the original one
         # project_data["BERTOS_PATH"] = project_info.info("BERTOS_PATH")