Merge pull request #39066 from Xrayez/is-module-yes

Do not rely on the existence of `config.py` while detecting modules
This commit is contained in:
Rémi Verschelde 2020-05-27 12:54:59 +02:00 committed by GitHub
commit 5c98de273d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):