Add support for toolchains stored in the windows registry
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 21 Apr 2009 08:30:12 +0000 (08:30 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 21 Apr 2009 08:30:12 +0000 (08:30 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2594 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BToolchainPage.py

index 2587cf2019bc9fd768baf199c7b4aa870db12f90..c012a200307032f3fb25aef78da8100ecf5e3d91 100644 (file)
@@ -136,6 +136,11 @@ class BToolchainPage(BWizardPage):
         Fills the toolchain list with the toolchains stored in the QSettings.
         """
         toolchains = self.toolchains()
+        if os.name == "nt":
+            import winreg_importer
+            stored_toolchains = winreg_importer.getBertosToolchains()
+            for toolchain in stored_toolchains:
+                toolchains[toolchain] = True
         sel_toolchain = self.projectInfo("TOOLCHAIN")
         for key, value in toolchains.items():
             item = QListWidgetItem(key)