Normalize path of BeRTOS versions before insert them into the Version set
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 10 Sep 2009 11:12:04 +0000 (11:12 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 10 Sep 2009 11:12:04 +0000 (11:12 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2924 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BVersionPage.py

index beda4e952b6ac999d20781a5e5d3fe39a8705dc5..37097c4fb0ccd70d4de3cbd680998f42e80d7fa4 100644 (file)
@@ -184,8 +184,8 @@ class BVersionPage(BWizardPage):
         versions = set([])
         if os.name == "nt":
             import winreg_importer
-            versions |= set(winreg_importer.getBertosDirs())
-        versions |= set(self.versions())
+            versions |= set([os.path.normpath(dir) for dir in winreg_importer.getBertosDirs()])
+        versions |= set([os.path.normpath(dir) for dir in self.versions()])
         selected = self.projectInfo("SOURCES_PATH")
         for directory in versions:
             item = self.insertListElement(directory)