Merge pull request from larsks/bug/791

correct path to conf.py in makeversionhdr.py
This commit is contained in:
Scott Shawcroft 2018-05-02 09:57:05 -07:00 committed by GitHub
commit 61d3dd85ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,7 +52,7 @@ def get_version_info_from_git():
return git_tag, git_hash, ver return git_tag, git_hash, ver
def get_version_info_from_docs_conf(): 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: for line in f:
if line.startswith("version = release = '"): if line.startswith("version = release = '"):
ver = line.strip().split(" = ")[2].strip("'") ver = line.strip().split(" = ")[2].strip("'")