Core: Remove Init.py stop file check from inner package loop

Check was unused, only stop files located at the top-level should halt loading.
This commit is contained in:
Chris Hennes
2022-03-02 10:00:52 -06:00
committed by GitHub
parent 2562c80c9b
commit 3af20938cd

View File

@@ -235,7 +235,6 @@ def InitApplications():
freecad_module = importlib.import_module(freecad_module_name)
extension_modules += [freecad_module_name]
if any (module_name == 'init' for _, module_name, ispkg in pkgutil.iter_modules(freecad_module.__path__)):
stopFile = os.path.join(freecad_module.__path__, "ADDON_DISABLED")
importlib.import_module(freecad_module_name + '.init')
Log('Init: Initializing ' + freecad_module_name + '... done\n')
else: