diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-01-07 15:56:18 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2018-01-07 15:56:40 +0100 |
commit | bb9070770918722b3694350662c6bd5920d7b64e (patch) | |
tree | 954c02e9348a403575a647b4f94cacd4e905dd8b | |
parent | b5b2ca81438f1152162409bfdfc2ee4ae64312bc (diff) |
SCons: Fix build error on invalid module folders
-rw-r--r-- | methods.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/methods.py b/methods.py index f9da6c8dd5..fbdac8a966 100644 --- a/methods.py +++ b/methods.py @@ -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) |