Use os.path.normpath for normalize the file paths with native separator
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 26 Mar 2009 12:02:08 +0000 (12:02 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 26 Mar 2009 12:02:08 +0000 (12:02 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2440 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 8e175dbecbf4653b99f85ec5aa5ea3b8a06f6a89..805519419374ac3274744f52ac522e77cd4137b5 100644 (file)
@@ -141,13 +141,13 @@ def csrcGenerator(project_info):
                     asm_files |= set(dependencySFiles)
             for file in module_files:
                 if not harvard or "harvard" not in information or information["harvard"] == "both":
-                    csrc.append(file)
+                    csrc.append(os.path.normpath(file))
                 if harvard and "harvard" in information:
-                    pcsrc.append(file)
+                    pcsrc.append(os.path.normpath(file))
             for file in dependency_files:
-                csrc.append(file)
+                csrc.append(os.path.normpath(file))
             for file in asm_files:
-                asrc.append(file)
+                asrc.append(os.path.normpath(file))
     csrc = " \\\n\t".join(csrc) + " \\"
     pcsrc = " \\\n\t".join(pcsrc) + " \\"
     asrc = " \\\n\t".join(asrc) + " \\"