Substitute / with the native separator
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 10 Apr 2009 09:31:27 +0000 (09:31 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 10 Apr 2009 09:31:27 +0000 (09:31 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2477 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index f4547f1f7245942472523ad108783261eccd144e..57f88694b0b30898e73e5c2abd0cb4cdc68ae18f 100644 (file)
@@ -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():