Skip to content

Commit c355093

Browse files
author
arch
committed
try other exit method
1 parent 0d51a02 commit c355093

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

funscript-editor.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
#!/bin/env python3
22

3+
import time
34
import traceback
45
from funscript_editor.__main__ import main
56

67
if __name__ == '__main__':
7-
try:
8-
main()
9-
except SystemExit as e:
10-
pass
11-
except:
12-
traceback.print_exc()
13-
input()
8+
main()

funscript_editor/ui/funscript_generator_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def __funscript_generated(self, funscript, msg, success) -> None:
105105

106106
self.__logger.info("Save result to %s", self.output_file)
107107
if not success: self.__show_message(msg, error=True)
108-
sys.exit()
108+
os._exit(os.EX_OK)
109109

110110

111111
def run(self) -> None:

0 commit comments

Comments
 (0)