Browse Source

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

Do not rely on the existence of `config.py` while detecting modules
Rémi Verschelde 5 years ago
parent
commit
5c98de273d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      methods.py

+ 1 - 1
methods.py

@@ -155,7 +155,7 @@ def detect_modules(at_path):
 
 
 
 
 def is_module(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):
 def write_modules(module_list):