X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=inline;f=wizard%2Fbertos_utils.py;h=493ffbe21c64bc8653994a1b1d8fc69dda68e620;hb=ab03b5b37726fb8b39a6f6c915f8668bddd779ee;hp=c0dc0867b0088095bc27a64a0e7afdc56f33b55a;hpb=f89fe8efdb8b81d7d1f29e241df3b40042c42712;p=bertos.git diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index c0dc0867..493ffbe2 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -283,12 +283,13 @@ def findModuleFiles(module, project_info): try: version_string = bertosVersion(project_info.info("BERTOS_PATH")) version_list = [int(i) for i in version_string.split()[-1].split('.')] - if version_list < [2, 5]: - # For older versions of BeRTOS add the toolchain to the tags - tags.append(project_info.info("CPU_INFOS")["TOOLCHAIN"]) except ValueError: - # If the version file hasn't a valid version number do nothing - pass + # If the version file hasn't a valid version number assume it's an older + # project. + version_list = [0, 0] + if version_list < [2, 5]: + # For older versions of BeRTOS add the toolchain to the tags + tags.append(project_info.info("CPU_INFOS")["TOOLCHAIN"]) for tag in tags: for filename, path in project_info.searchFiles(module + "_" + tag + ".c"):