Fix bug when loading config file (wrong path).

This commit is contained in:
Giovanni Bajo 2012-12-14 01:24:22 +01:00
parent 29f768e48f
commit 7d13d61a29

View File

@ -204,7 +204,7 @@ class Config(object):
os.chdir(dirname)
# get config source -- 'b' is a no-op under 2.x, while 'U' is
# ignored under 3.x (but 3.x compile() accepts \r\n newlines)
f = open(config_file, 'rbU')
f = open(filename, 'rbU')
try:
source = f.read()
finally: