Reverted the new config file path expansion logic as it breaks include directives
This commit is contained in:
parent
12557702dd
commit
56b48a81b7
1 changed files with 4 additions and 1 deletions
|
@ -116,7 +116,10 @@ class Config(object):
|
||||||
|
|
||||||
|
|
||||||
def _read_config_file(self, cfgfile):
|
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 = {}
|
config = {}
|
||||||
|
|
||||||
with open(cfgfile, 'r') as fp:
|
with open(cfgfile, 'r') as fp:
|
||||||
|
|
Loading…
Reference in a new issue