From: duplo Date: Fri, 23 Oct 2009 13:54:57 +0000 (+0000) Subject: Add the parameter conditional_deps to the configuration information dict. X-Git-Tag: 2.4.0~100 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=e72e844998a9b7e63e56d6c1ccc3ada8f5dad4d6;p=bertos.git Add the parameter conditional_deps to the configuration information dict. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3097 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 7f470a1c..c0c9ecb2 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -709,6 +709,14 @@ def loadConfigurationInfos(path): configuration_infos[name]["value"].find("U") != -1): configuration_infos[name]["informations"]["unsigned"] = True configuration_infos[name]["value"] = configuration_infos[name]["value"].replace("U", "") + if "conditional_deps" in configuration_infos[name]["informations"]: + if (type(configuration_infos[name]["informations"]["conditional_deps"]) == str or + type(configuration_infos[name]["informations"]["conditional_deps"]) == unicode): + configuration_infos[name]["informations"]["conditional_deps"] = (configuration_infos[name]["informations"]["conditional_deps"], ) + elif type(configurations_infos[name]["informations"]["conditional_deps"]) == tuple: + pass + else: + configurations_infos[name]["informations"]["conditional_deps"] = () configuration_infos[name]["description"] = description configuration_infos[name]["brief"] = brief return configuration_infos