SCons: Fix build error on invalid module folders

(cherry picked from commit bb90707709)
This commit is contained in:
Rémi Verschelde 2018-01-07 15:56:18 +01:00
parent 20b821780c
commit e6e4d0417b

View file

@ -1190,6 +1190,8 @@ def detect_modules():
for x in glob.glob("modules/*"):
if (not os.path.isdir(x)):
continue
if (not os.path.exists(x + "/config.py")):
continue
x = x.replace("modules/", "") # rest of world
x = x.replace("modules\\", "") # win32
module_list.append(x)