refactor os.environ to pathlib #1

Merged
mightyBroccoli merged 2 commits from configpath into master 2020-11-06 12:07:39 +01:00
1 changed files with 2 additions and 3 deletions
Showing only changes of commit a9e9f2e174 - Show all commits

View File

@ -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:
if not Path.exists(self.conf_file):
self.conf_file = Path("/etc/ejabberd-metrics.yml")
# read config file