mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix bug when loading config file (wrong path).
This commit is contained in:
parent
29f768e48f
commit
7d13d61a29
@ -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