Add `main` function as entry point for console script

pull/80/head
Claudio Jolowicz 2020-08-22 13:49:01 +02:00
parent 442802af99
commit a79042bc28
No known key found for this signature in database
GPG Key ID: E6BDB18E3A5888BF
1 changed files with 5 additions and 1 deletions

View File

@ -4306,7 +4306,7 @@ def process_keys():
CPU_NAME: str = get_cpu_name()
if __name__ == "__main__":
def main():
#? Init -------------------------------------------------------------------------------------->
if DEBUG: TimeIt.start("Init")
@ -4490,3 +4490,7 @@ if __name__ == "__main__":
else:
#? Quit cleanly even if false starts being true...
clean_quit()
if __name__ == "__main__":
main()