From e2bac65191c1090815e574a2459cc3546e890f9d Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 21 May 2010 09:00:14 +0000 Subject: [PATCH] Fix #148 issue. If the cfg file isn't found the Wizard use the default configuration. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3773 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BProject.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wizard/BProject.py b/wizard/BProject.py index 59ffd492..2bdbfe2e 100644 --- a/wizard/BProject.py +++ b/wizard/BProject.py @@ -270,6 +270,9 @@ class BProject(object): configuration_info[configuration] = updateConfigurationValues(configuration_info[configuration], loadConfigurationInfos(cfg_file_path)) except ParseError, err: raise DefineException.ConfigurationDefineException(cfg_file_path, err.line_number, err.line) + except IOError, err: + # The wizard can't find the file, use the default configuration + pass module_info_dict.update(module_dict) configuration_info_dict.update(configuration_info) if to_be_parsed: -- 2.25.1