Skip to content

Commit

Permalink
Fixscripts/version which failed during python build.
Browse files Browse the repository at this point in the history
The script was using a fixed path to the version_file in one case
instead of using the detected one.

Fixes: KatanaGraph#185
  • Loading branch information
arthurp committed Apr 29, 2021
1 parent 535d9b5 commit f1d0d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/katana_version/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ def get_config_version(k_commit, repo: Repo, version_file, no_dev=False) -> vers
version_str = version_file.read()
elif version_file:
# We have no git information. Wing it.
with open(Path(__file__).parent.parent.parent / CONFIG_VERSION_PATH, "rt") as version_file:
version_str = version_file.read()
with open(version_file, "rt") as version_fi:
version_str = version_fi.read()
else:
# We have no information. Something is really broken. Still don't crash to allow builds.
version_str = "0.0.0"
Expand Down

0 comments on commit f1d0d7c

Please sign in to comment.