From e6e4d0417b10595ee8a550104a128c4b014b883e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sun, 7 Jan 2018 15:56:18 +0100 Subject: [PATCH] SCons: Fix build error on invalid module folders (cherry picked from commit bb9070770918722b3694350662c6bd5920d7b64e) --- methods.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/methods.py b/methods.py index 7fc3cf52e51..2fafd506bef 100755 --- a/methods.py +++ b/methods.py @@ -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)