diff options
author | genofire <geno+dev@fireorbit.de> | 2020-09-26 22:08:01 +0200 |
---|---|---|
committer | genofire <geno+dev@fireorbit.de> | 2020-09-26 22:09:01 +0200 |
commit | a9e9f2e174f81979e40f42a6440159f2ee1e2ed4 (patch) | |
tree | 6daa023404b506983d4291188bc5c7aec80abe55 | |
parent | 714548b0c7d1813c681a5484bbde8ce12e9efedc (diff) |
pathlib config path - short version
-rw-r--r-- | config.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -14,9 +14,8 @@ class Config: self.content = None # select config file - if Path.exists(Path("config.yml")): - self.conf_file = Path("config.yml") - else: + self.conf_file = Path("config.yml") + if not Path.exists(self.conf_file): self.conf_file = Path("/etc/ejabberd-metrics.yml") # read config file |