From ef80d6ebb7246781e8596496eb34b1039ff7de04 Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 24 Sep 2010 12:42:28 +0000 Subject: [PATCH] Directories with gcc-binary-like name are now excluded from toolchain list :) (Bug #172) git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4295 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index a15e5af1..619371ad 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -348,7 +348,8 @@ def findToolchains(path_list): toolchains = [] for element in path_list: for toolchain in glob.glob(element+ "/" + const.GCC_NAME): - toolchains.append(toolchain) + if not os.path.isdir(toolchain): + toolchains.append(toolchain) return list(set(toolchains)) def getToolchainInfo(output): -- 2.25.1