Directories with gcc-binary-like name are now excluded from toolchain list :)
[bertos.git] / 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):