summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2020-05-26 18:00:30 +0300
committerAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2020-05-26 18:00:30 +0300
commit12389b37363db541517c1c722e2e82294e92e251 (patch)
treeb635501d966475a9b534a952346595a4f49474fc
parentbfac9b35385eddd3e3034674ae3fbd309ee64843 (diff)
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.
-rw-r--r--methods.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods.py b/methods.py
index 46b58a13cd..dee7939046 100644
--- a/methods.py
+++ b/methods.py
@@ -155,7 +155,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):