Only one call to main

This commit is contained in:
RealStickman 2022-12-07 21:20:21 +01:00
parent 87739dca21
commit 6b57e365ad

View File

@ -91,9 +91,9 @@ if __name__ == "__main__":
config = importlib.util.module_from_spec(spec) config = importlib.util.module_from_spec(spec)
sys.modules["config"] = config sys.modules["config"] = config
spec.loader.exec_module(config) spec.loader.exec_module(config)
# call new main function
config.main() config.main()
else: else:
print("Config is up to date") print("Config is up to date")
# call main function
# call main function now main()
main()