moved config.ini into ~/.config/brovski-adress-etiketten

This commit is contained in:
2025-04-22 01:27:53 +02:00
parent 748519f45f
commit ca14ecea76

View File

@@ -15,9 +15,11 @@ class Config:
"""
self.parser = ConfigParser()
self.config_file_name = "config.ini"
self.root_path = os.path.dirname(os.path.abspath(__file__))
self.config_file = os.path.join(self.root_path, self.config_file_name)
home_path = os.environ["HOME"]
full_path = os.path.join(home_path, ".config", "brovski-adress-etiketten" )
if not os.path.exists(full_path):
os.makedirs(full_path)
self.config_file = os.path.join(full_path, "config.ini")
self._load()