mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-12 03:10:17 +01:00
Merge branch 'master' into dev
This commit is contained in:
@@ -58,7 +58,7 @@ class Data(object):
|
||||
|
||||
### persisted data (use default if doesnt exits):
|
||||
if not os.path.isfile(self.PATH_TO_CONJUR_DATA):
|
||||
os.remove(self.PATH_TO_DATA_OBJECTS + self.SETTINGS_JSON ) # keep the, in sync
|
||||
self.try_remove_file(self.PATH_TO_DATA_OBJECTS + self.SETTINGS_JSON ) # keep the, in sync
|
||||
copyfile(self.PATH_TO_DEFAULT_CONJUR_DATA, self.PATH_TO_CONJUR_DATA)
|
||||
|
||||
self.bank_data = [self.create_empty_bank()]
|
||||
@@ -407,3 +407,7 @@ class Data(object):
|
||||
else:
|
||||
return []
|
||||
|
||||
@staticmethod
|
||||
def try_remove_file(path):
|
||||
if os.path.exists(path):
|
||||
os.remove(path)
|
||||
|
||||
Reference in New Issue
Block a user