From: duplo Date: Thu, 10 Sep 2009 11:12:04 +0000 (+0000) Subject: Normalize path of BeRTOS versions before insert them into the Version set X-Git-Tag: 2.2.0~44 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=99cd4e1028fe1f49de42960dc2535bfbbaf7977d;p=bertos.git Normalize path of BeRTOS versions before insert them into the Version set git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2924 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BVersionPage.py b/wizard/BVersionPage.py index beda4e95..37097c4f 100644 --- a/wizard/BVersionPage.py +++ b/wizard/BVersionPage.py @@ -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)