1
0
mirror of https://github.com/gryf/fs-uae-wrapper.git synced 2025-12-19 04:20:23 +01:00

Added wrapper_archiver option

To give user a possibility to choose what archiver he can use another
options was introduced for cd32 and archive wrapper modules. This option
will indicate what archiver should be used for compressing the save
state directories.
This commit is contained in:
2017-01-02 20:08:50 +01:00
parent 5f98e9b794
commit 19acb789b6
6 changed files with 82 additions and 19 deletions

View File

@@ -7,6 +7,7 @@ import shutil
import tempfile
from fs_uae_wrapper import utils
from fs_uae_wrapper import path
class Base(object):
@@ -195,4 +196,15 @@ class Base(object):
sys.stderr.write("Configuration lacks of required "
"`wrapper' option.\n")
return False
if 'wrapper_archiver' not in self.all_options:
sys.stderr.write("Configuration lacks of required "
"`wrapper_archiver' option.\n")
return False
if not path.which(self.all_options['wrapper_archiver']):
sys.stderr.write("Cannot find archiver `%s'." %
self.all_options['wrapper_archiver'])
return False
return True