Directories with gcc-binary-like name are now excluded from toolchain list :)
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 24 Sep 2010 12:42:28 +0000 (12:42 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 24 Sep 2010 12:42:28 +0000 (12:42 +0000)
(Bug #172)

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4295 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index a15e5af1fd815fec0063db22016f86cbf2c6d44b..619371ad663ca60c6e8097c735f79c232ec3cf0f 100644 (file)
@@ -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):