SCons: Fix build error on invalid module folders

This commit is contained in:
Rémi Verschelde 2018-01-07 15:56:18 +01:00
parent b5b2ca8143
commit bb90707709
1 changed files with 2 additions and 0 deletions

View File

@ -1274,6 +1274,8 @@ def detect_modules():
for x in files:
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)