From 8633958f297b21a78b3858823c2611f96729c534 Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Sat, 11 Nov 2023 18:34:28 +0100 Subject: [PATCH] Renamed settings.py to file_dict.py, because it can not only be used to store settings. --- settings.py => file_dict.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) rename settings.py => file_dict.py (98%) diff --git a/settings.py b/file_dict.py similarity index 98% rename from settings.py rename to file_dict.py index 8bbdea3..c2a6804 100644 --- a/settings.py +++ b/file_dict.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -class Settings: +class FileDict: def __init__(self, path: str=None): self.path = path @@ -10,7 +10,6 @@ class Settings: else: self.load_from_file(path) - def load_from_file(self, path): file = open(path, "r") self.settings = eval(file.read())