Use new paths for Exceptions
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 30 Apr 2010 15:12:03 +0000 (15:12 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 30 Apr 2010 15:12:03 +0000 (15:12 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3584 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BProject.py

index 0fc1b7f7f366d2f1da3186ead4e291c96dbd7a66..c8bb4f0e54064d22e29864d3d55b362b03031bfe 100644 (file)
@@ -263,14 +263,14 @@ class BProject(object):
                             cfg_file_path = os.path.join(self.bertos_srcdir, configuration)
                             configuration_info[configuration] = loadConfigurationInfos(cfg_file_path)
                         except ParseError, err:
-                            raise DefineException.ConfigurationDefineException(self.infos["BERTOS_PATH"] + "/" + configuration, err.line_number, err.line)
+                            raise DefineException.ConfigurationDefineException(cfg_file_path, err.line_number, err.line)
                         if edit:
                             try:
                                 path = self.infos["PROJECT_SRC_PATH"]
                                 cfg_file_path = os.path.join(path, configuration)
                                 configuration_info[configuration] = updateConfigurationValues(configuration_info[configuration], cfg_file_path)
                             except ParseError, err:
-                                raise DefineException.ConfigurationDefineException(configuration.replace("bertos", path))
+                                raise DefineException.ConfigurationDefineException(cfg_file_path, err.line_number, err.line)
                 module_info_dict.update(module_dict)
                 configuration_info_dict.update(configuration_info)
                 if to_be_parsed: