From: duplo Date: Fri, 21 May 2010 09:00:14 +0000 (+0000) Subject: Fix #148 issue. If the cfg file isn't found the Wizard use the default configuration. X-Git-Tag: 2.5.0~144 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=e2bac65191c1090815e574a2459cc3546e890f9d;p=bertos.git 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 --- 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: