Skip to content
Snippets Groups Projects
Commit 17c649da authored by omtinez's avatar omtinez Committed by Paul Sokolovsky
Browse files

py/makeversionhdr.py: Work with backslashes in paths.

This script may be called by Windows IDEs (e.g. Visual Studio) and be passed
paths with backslashes.
parent 6f702839
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ def get_version_info_from_git():
return git_tag, git_hash, ver
def get_version_info_from_docs_conf():
with open("%s/docs/conf.py" % sys.argv[0].rsplit("/", 2)[0]) as f:
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("'")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment