moved config.ini into ~/.config/brovski-adress-etiketten
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user