From: duplo Date: Fri, 24 Sep 2010 12:42:28 +0000 (+0000) Subject: Directories with gcc-binary-like name are now excluded from toolchain list :) X-Git-Tag: 2.6.0~106 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;ds=sidebyside;h=ef80d6ebb7246781e8596496eb34b1039ff7de04;p=bertos.git 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 --- 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):