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)