Add BeRTOS versions contained in the windows registry
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 20 Apr 2009 15:58:32 +0000 (15:58 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 20 Apr 2009 15:58:32 +0000 (15:58 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2587 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BVersionPage.py

index 5d891b2192e334b4c68f0f8c708ab48d87c38309..fde94dbb84dae030ef9a20034a02788de946cd19 100644 (file)
@@ -153,7 +153,11 @@ class BVersionPage(BWizardPage):
         """
         Fills the version list with all the BeRTOS versions founded in the QSettings.
         """
-        versions = self.versions()
+        versions = set([])
+        if os.name == "nt":
+            import winreg_importer
+            versions |= set(winreg_importer.getBertosDirs())
+        versions |= set(self.versions())
         selected = self.projectInfo("SOURCES_PATH")
         for directory in versions:
             item = self.insertListElement(directory)