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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user