Skip to content

Commit

Permalink
Fix build on RTD
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Di Remigio committed Oct 28, 2015
1 parent 4cc93a3 commit 4293d70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,13 @@ def setup(app):
'@PROJECT_SOURCE_DIR@' : project_src_dir,
'@DOXYGEN_DOT_PATH@' : dot_path
}
f = open(project_src_dir + '/doc/Doxyfile.in', 'r')
f = open(project_src_dir + '/Doxyfile.in', 'r')
filedata = f.read()
f.close()
rep = dict((re.escape(k), v) for k, v in rep.iteritems())
pattern = re.compile("|".join(rep.keys()))
filedata = pattern.sub(lambda m: rep[re.escape(m.group(0))], filedata)
f = open(project_src_dir + '/doc/Doxyfile', 'w+')
f = open(project_src_dir + '/Doxyfile', 'w+')
f.write(filedata)
f.close()

Expand Down

0 comments on commit 4293d70

Please sign in to comment.