mirror of
https://github.com/gryf/fs-uae-wrapper.git
synced 2025-12-30 18:32:29 +01:00
Removed six as a dependency
Changed logic for checking if run_command argument is a list. Fixed tests and refactoring save_save() method in cd32 module.
This commit is contained in:
@@ -165,9 +165,8 @@ class CD32(object):
|
||||
if os.path.exists(self.save_filename):
|
||||
os.unlink(self.save_filename)
|
||||
|
||||
code = utils.run_command(['7z', 'a', self.save_filename,
|
||||
os.path.join(self.dir, 'fs-uae-save')])
|
||||
if code != 0:
|
||||
if not utils.run_command(['7z', 'a', self.save_filename,
|
||||
os.path.join(self.dir, 'fs-uae-save')]):
|
||||
sys.stderr.write('Error: archiving save state failed\n')
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user