Do not rely on the existence of `config.py` while detecting modules

The existence of `SCsub` is checked instead. This file is required for
all modules, and prevents the build system to leave modules without
`config.py` undetected, leading to silently ignoring the module during
compilation.

(cherry picked from commit 12389b3736)
This commit is contained in:
Andrii Doroshenko (Xrayez) 2020-05-26 18:00:30 +03:00 committed by Rémi Verschelde
parent fa0cf25e19
commit d201163557
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ def detect_modules(at_path):
def is_module(path):
return os.path.isdir(path) and os.path.exists(path + "/config.py")
return os.path.isdir(path) and os.path.exists(os.path.join(path, "SCsub"))
def write_modules(module_list):