summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-05-27 12:54:59 +0200
committerGitHub <noreply@github.com>2020-05-27 12:54:59 +0200
commit5c98de273dcec4131ba3329e378e828d11bb0548 (patch)
treecedf0548cd8b2c50107cd9fb8c9ce7fdf9f2fe7c
parentc10dab134afe1e4540fbb01d78fc0cf6a4dbbe26 (diff)
parent12389b37363db541517c1c722e2e82294e92e251 (diff)
Merge pull request #39066 from Xrayez/is-module-yes
Do not rely on the existence of `config.py` while detecting modules
-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):