From f9440cf1f159f0d98ebe80c000af76906639a09a Mon Sep 17 00:00:00 2001 From: yoshiko2 Date: Mon, 8 May 2023 06:24:31 +0800 Subject: [PATCH] Fix auto exit in Windows --- Movie_Data_Capture.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Movie_Data_Capture.py b/Movie_Data_Capture.py index a6273d5..c130424 100644 --- a/Movie_Data_Capture.py +++ b/Movie_Data_Capture.py @@ -680,7 +680,7 @@ if __name__ == '__main__': app_start = time.time() # Read config.ini first, in argparse_function() need conf.failed_folder() - conf = config.Config("config.ini") + conf = config.getInstance() # Parse command line args args = tuple(argparse_function(version)) @@ -714,5 +714,3 @@ if __name__ == '__main__': if not conf.auto_exit(): if sys.platform == 'win32': input("Press enter key exit, you can check the error message before you exit...") - - sys.exit(0)