Fix #148 issue. If the cfg file isn't found the Wizard use the default configuration.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 21 May 2010 09:00:14 +0000 (09:00 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 21 May 2010 09:00:14 +0000 (09:00 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3773 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BProject.py

index 59ffd492ebc9a3e41b6cd775503e48f47dafc7f7..2bdbfe2e001284b8ff4e2dbe9d8f336b6cf86ba8 100644 (file)
@@ -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: