Fix auto exit in Windows

This commit is contained in:
yoshiko2
2023-05-08 06:24:31 +08:00
parent a5f7a1afde
commit f9440cf1f1

View File

@@ -680,7 +680,7 @@ if __name__ == '__main__':
app_start = time.time() app_start = time.time()
# Read config.ini first, in argparse_function() need conf.failed_folder() # Read config.ini first, in argparse_function() need conf.failed_folder()
conf = config.Config("config.ini") conf = config.getInstance()
# Parse command line args # Parse command line args
args = tuple(argparse_function(version)) args = tuple(argparse_function(version))
@@ -714,5 +714,3 @@ if __name__ == '__main__':
if not conf.auto_exit(): if not conf.auto_exit():
if sys.platform == 'win32': if sys.platform == 'win32':
input("Press enter key exit, you can check the error message before you exit...") input("Press enter key exit, you can check the error message before you exit...")
sys.exit(0)