From a05e3ae271c1aa5c30241e95c6d5e12801ef1f8d Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 3 May 2010 10:24:11 +0000 Subject: [PATCH] Use relative path for BERTOS_PATH parameter. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3592 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index f3df83d1..1aeaef7a 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -114,11 +114,11 @@ def projectFileGenerator(project_info): if project_info.info("PRESET"): # For presets save again the BERTOS_PATH into project file project_data["PRESET"] = True - project_data["BERTOS_PATH"] = project_info.info("BERTOS_PATH") + 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") - project_data["BERTOS_PATH"] = directory + project_data["BERTOS_PATH"] = "." project_data["PROJECT_NAME"] = project_info.info("PROJECT_NAME", os.path.basename(directory)) project_src_relpath = relpath.relpath(project_info.info("PROJECT_SRC_PATH"), directory) project_data["PROJECT_SRC_PATH"] = project_src_relpath -- 2.25.1