Merged in giovannibajo/sphinx (pull request #93: Fix bug when loading config file (wrong path).)

This commit is contained in:
Georg Brandl 2012-12-30 18:01:19 +01:00
commit c3384b7e6e

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: