Only one call to main
This commit is contained in:
parent
87739dca21
commit
6b57e365ad
@ -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()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user