change load function to use Config stored variables

This commit is contained in:
2024-04-04 20:36:05 +02:00
parent f3d85922ed
commit b460480e2b
5 changed files with 18 additions and 22 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ class SavedState:
def load_from_file(cls, file_options):
LOGGING.debug(f"Loading from file: {file_options}")
if os.path.exists(file_options["path"]):
with open(file_options["path"], "rb") as f:
with open(f'{file_options["path"]}/{file_options["name"]}', "rb") as f:
data = my_pickle.load(f, file_options['compression'], None)
new_class = cls()