From c7579be1f09977673ab25da3a0f17f9ff2b66c97 Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 10 Apr 2009 09:31:27 +0000 Subject: [PATCH] Substitute / with the native separator git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2477 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index f4547f1f..57f88694 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -160,24 +160,24 @@ def findModuleFiles(module, project_info): # .c files related to the module and the cpu architecture for filename, path in findDefinitions(module + ".c", project_info) + \ findDefinitions(module + "_" + project_info.info("CPU_INFOS")["TOOLCHAIN"] + ".c", project_info): - path = path.replace(project_info.info("SOURCES_PATH") + "/", "") - cfiles.append(path + "/" + filename) + path = path.replace(project_info.info("SOURCES_PATH") + os.sep, "") + cfiles.append(path + os.sep + filename) # .s files related to the module and the cpu architecture for filename, path in findDefinitions(module + ".s", project_info) + \ findDefinitions(module + "_" + project_info.info("CPU_INFOS")["TOOLCHAIN"] + ".s", project_info) + \ findDefinitions(module + ".S", project_info) + \ findDefinitions(module + "_" + project_info.info("CPU_INFOS")["TOOLCHAIN"] + ".S", project_info): - path = path.replace(project_info.info("SOURCES_PATH") + "/", "") - sfiles.append(path + "/" + filename) + path = path.replace(project_info.info("SOURCES_PATH") + os.sep, "") + sfiles.append(path + os.sep + filename) # .c and .s files related to the module and the cpu tags for tag in project_info.info("CPU_INFOS")["CPU_TAGS"]: for filename, path in findDefinitions(module + "_" + tag + ".c", project_info): - path = path.replace(project_info.info("SOURCES_PATH") + "/", "") - cfiles.append(path + "/" + filename) + path = path.replace(project_info.info("SOURCES_PATH") + os.sep, "") + cfiles.append(path + os.sep + filename) for filename, path in findDefinitions(module + "_" + tag + ".s", project_info) + \ findDefinitions(module + "_" + tag + ".S", project_info): - path = path.replace(project_info.info("SOURCES_PATH") + "/", "") - sfiles.append(path + "/" + filename) + path = path.replace(project_info.info("SOURCES_PATH") + os.sep, "") + sfiles.append(path + os.sep + filename) return cfiles, sfiles def getSystemPath(): -- 2.25.1