From: duplo Date: Mon, 3 May 2010 13:05:38 +0000 (+0000) Subject: Save the current BERTOS_PATH in editing mode (instead of override it with the local... X-Git-Tag: 2.5.0~313 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=016cae1a16dafa7e71b6044a62d4f64bef9cc4ed;p=bertos.git Save the current BERTOS_PATH in editing mode (instead of override it with the local project directory). git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3595 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 1aeaef7a..c2de0045 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -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")