Przeglądaj źródła

SCons: Fix build error on invalid module folders

(cherry picked from commit bb9070770918722b3694350662c6bd5920d7b64e)
Rémi Verschelde 7 lat temu
rodzic
commit
e6e4d0417b
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      methods.py

+ 2 - 0
methods.py

@@ -1190,6 +1190,8 @@ def detect_modules():
     for x in glob.glob("modules/*"):
         if (not os.path.isdir(x)):
             continue
+        if (not os.path.exists(x + "/config.py")):
+            continue
         x = x.replace("modules/", "")  # rest of world
         x = x.replace("modules\\", "")  # win32
         module_list.append(x)