mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merged in giovannibajo/sphinx (pull request #93: Fix bug when loading config file (wrong path).)
This commit is contained in:
commit
c3384b7e6e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user