From: duplo Date: Mon, 20 Apr 2009 15:58:32 +0000 (+0000) Subject: Add BeRTOS versions contained in the windows registry X-Git-Tag: 2.1.0~95 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=6756c1317f0e53161565214755a71fd573aeb635;p=bertos.git Add BeRTOS versions contained in the windows registry git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2587 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BVersionPage.py b/wizard/BVersionPage.py index 5d891b21..fde94dbb 100644 --- a/wizard/BVersionPage.py +++ b/wizard/BVersionPage.py @@ -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)