Skip to content

Commit 4e977aa

Browse files
committed
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 adafruit#791.
1 parent dd0f868 commit 4e977aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/makeversionhdr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def get_version_info_from_git():
5252
return git_tag, git_hash, ver
5353

5454
def get_version_info_from_docs_conf():
55-
with open(os.path.join(os.path.dirname(sys.argv[0]), "..", "docs", "conf.py")) as f:
55+
with open(os.path.join(os.path.dirname(sys.argv[0]), "..", "conf.py")) as f:
5656
for line in f:
5757
if line.startswith("version = release = '"):
5858
ver = line.strip().split(" = ")[2].strip("'")

0 commit comments

Comments
 (0)