Ignore invalid folders in platform

Fixes #4479

(cherry picked from commit f938793e78)
This commit is contained in:
Rémi Verschelde 2016-04-29 18:58:37 +02:00
parent f033763700
commit 3c453b7bd2

View file

@ -23,7 +23,7 @@ platform_exporters=[]
global_defaults=[]
for x in glob.glob("platform/*"):
if (not os.path.isdir(x)):
if (not os.path.isdir(x) or not os.path.exists(x+"/detect.py")):
continue
tmppath="./"+x