From 6756c1317f0e53161565214755a71fd573aeb635 Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 20 Apr 2009 15:58:32 +0000 Subject: [PATCH] Add BeRTOS versions contained in the windows registry git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2587 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BVersionPage.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- 2.25.1