From f1d0d7c69138677df1d44bd2865eb7018cb048a0 Mon Sep 17 00:00:00 2001 From: Arthur Peters Date: Thu, 29 Apr 2021 12:47:46 -0500 Subject: [PATCH] Fix`scripts/version` which failed during python build. The script was using a fixed path to the version_file in one case instead of using the detected one. Fixes: #185 --- scripts/katana_version/version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/katana_version/version.py b/scripts/katana_version/version.py index 8a004c196b..c21945fbf3 100644 --- a/scripts/katana_version/version.py +++ b/scripts/katana_version/version.py @@ -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"