Reverted the new config file path expansion logic as it breaks include directives

This commit is contained in:
Fabio Manganiello 2018-12-18 22:16:15 +01:00
parent 12557702dd
commit 56b48a81b7
1 changed files with 4 additions and 1 deletions

View File

@ -116,7 +116,10 @@ class Config(object):
def _read_config_file(self, cfgfile):
cfgfile = os.path.abspath(os.path.expanduser(cfgfile))
if not os.path.isabs(cfgfile):
cfgfile = os.path.join(os.path.expanduser(
os.path.dirname(self._cfgfile)), cfgfile)
config = {}
with open(cfgfile, 'r') as fp: