Renamed settings.py to file_dict.py, because it can not only be used to store settings.

This commit is contained in:
The Wobbler 2023-11-11 18:34:28 +01:00
parent 95c6346d26
commit 8633958f29

View file

@ -1,6 +1,6 @@
#!/usr/bin/python3 #!/usr/bin/python3
class Settings: class FileDict:
def __init__(self, path: str=None): def __init__(self, path: str=None):
self.path = path self.path = path
@ -10,7 +10,6 @@ class Settings:
else: else:
self.load_from_file(path) self.load_from_file(path)
def load_from_file(self, path): def load_from_file(self, path):
file = open(path, "r") file = open(path, "r")
self.settings = eval(file.read()) self.settings = eval(file.read())