From 4e977aafe4d2df129b3f8001e4fe4dfd9642f7f9 Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Wed, 2 May 2018 08:22:35 -0400 Subject: [PATCH] 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. --- py/makeversionhdr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/makeversionhdr.py b/py/makeversionhdr.py index ebd887445b..1f82d59339 100644 --- a/py/makeversionhdr.py +++ b/py/makeversionhdr.py @@ -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("'")