correct path to conf.py in makeversionhdr.py
the py/makeversionhdr.py script was looking for `conf.py` in the
`docs/` directory, but this was relocated in 46e7f8e
. This is used by
the fallback `get_version_info_from_docs_conf` method, which is only
consulted if `git` is unavailable in the build environment.
Closes #791.
This commit is contained in:
parent
dd0f8689a1
commit
4e977aafe4
@ -52,7 +52,7 @@ def get_version_info_from_git():
|
||||
return git_tag, git_hash, ver
|
||||
|
||||
def get_version_info_from_docs_conf():
|
||||
with open(os.path.join(os.path.dirname(sys.argv[0]), "..", "docs", "conf.py")) as f:
|
||||
with open(os.path.join(os.path.dirname(sys.argv[0]), "..", "conf.py")) as f:
|
||||
for line in f:
|
||||
if line.startswith("version = release = '"):
|
||||
ver = line.strip().split(" = ")[2].strip("'")
|
||||
|
Loading…
Reference in New Issue
Block a user