aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/config.py b/config.py
index b99708f..ee72f1c 100644
--- a/config.py
+++ b/config.py
@@ -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