1
0
mirror of https://github.com/gryf/fs-uae-wrapper.git synced 2025-12-30 02:12:29 +01:00

Get rid of run function for every wrapper module

This commit is contained in:
2017-01-08 11:20:33 +01:00
parent 8528d28a42
commit a14871c52f
3 changed files with 8 additions and 21 deletions

View File

@@ -78,7 +78,14 @@ def run():
"exists.\n" % wrapper_module)
sys.exit(3)
if not wrapper.run(config_file, fsuae_options, configuration):
runner = wrapper.Wrapper(config_file, fsuae_options, configuration)
try:
exit_code = runner.run()
finally:
runner.clean()
if not exit_code:
sys.exit(4)