add 'util.expand_path()'

This commit is contained in:
Mike Fährmann
2017-10-26 00:04:28 +02:00
parent 9a41002b77
commit ea8ca4cfa4
3 changed files with 11 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ def load(*files, format="json", strict=False):
for conf in configfiles:
try:
path = os.path.expanduser(os.path.expandvars(conf))
path = util.expand_path(conf)
with open(path) as file:
confdict = parsefunc(file)
if not _config: