SCons: Fix build error on invalid module folders
This commit is contained in:
parent
b5b2ca8143
commit
bb90707709
|
@ -1274,6 +1274,8 @@ def detect_modules():
|
||||||
for x in files:
|
for x in files:
|
||||||
if (not os.path.isdir(x)):
|
if (not os.path.isdir(x)):
|
||||||
continue
|
continue
|
||||||
|
if (not os.path.exists(x + "/config.py")):
|
||||||
|
continue
|
||||||
x = x.replace("modules/", "") # rest of world
|
x = x.replace("modules/", "") # rest of world
|
||||||
x = x.replace("modules\\", "") # win32
|
x = x.replace("modules\\", "") # win32
|
||||||
module_list.append(x)
|
module_list.append(x)
|
||||||
|
|
Loading…
Reference in New Issue