py/makeversionhdr.py: Update to parse new release line in docs/conf.py.

The line in docs/conf.py with the release/version number was recently
changed and this patch makes the makeversionhdr.py script work again.
This commit is contained in:
Damien George 2017-07-04 22:37:41 +10:00
parent 48b745cfc8
commit b51919f5b7
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ def get_version_info_from_git():
def get_version_info_from_docs_conf():
with open(os.path.join(os.path.dirname(sys.argv[0]), "..", "docs", "conf.py")) as f:
for line in f:
if line.startswith("release = '"):
ver = line.strip()[10:].strip("'")
if line.startswith("version = release = '"):
ver = line.strip().split(" = ")[2].strip("'")
git_tag = "v" + ver
ver = ver.split(".")
if len(ver) == 2: