From: duplo Date: Fri, 10 Apr 2009 09:31:27 +0000 (+0000) Subject: Substitute / with the native separator X-Git-Tag: 2.1.0~205 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=c7579be1f09977673ab25da3a0f17f9ff2b66c97;p=bertos.git Substitute / with the native separator git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2477 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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():