Main build script: Properly set module_ name _enabled in environment to false for modules that get disabled using can_build().

This commit is contained in:
Relintai 2022-08-07 20:46:39 +02:00
parent 53f274de2f
commit 6f66cad2cb

View File

@ -606,6 +606,8 @@ if selected_platform in platform_list:
# Default path for module icons # Default path for module icons
env.module_icons_paths.append(path + "/" + "icons") env.module_icons_paths.append(path + "/" + "icons")
modules_enabled[name] = path modules_enabled[name] = path
else:
env["module_" + name + "_enabled"] = False
sys.path.remove(path) sys.path.remove(path)
sys.modules.pop("config") sys.modules.pop("config")