aboutsummaryrefslogtreecommitdiff
path: root/modules/launch_utils.py
diff options
context:
space:
mode:
authorw-e-w <40751091+w-e-w@users.noreply.github.com>2023-06-03 13:33:23 +0900
committerw-e-w <40751091+w-e-w@users.noreply.github.com>2023-06-03 13:33:23 +0900
commitdf5a3cbefe46dbd6b5eb5b6a62e66d5b7378d4ee (patch)
tree260b1ca658e7d37ec7c83c86d525b549a50b2675 /modules/launch_utils.py
parentd1bfc86ffcbe64eea7642ed1292ac89199beb0dc (diff)
fallback version info form CHANGELOG.md
Diffstat (limited to 'modules/launch_utils.py')
-rw-r--r--modules/launch_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/launch_utils.py b/modules/launch_utils.py
index 9c3af12f..0c8c4db0 100644
--- a/modules/launch_utils.py
+++ b/modules/launch_utils.py
@@ -69,7 +69,8 @@ def git_tag():
return subprocess.check_output([git, "describe", "--tags"], shell=False, encoding='utf8').strip()
except Exception:
try:
- changelog_md = pathlib.Path(__file__).parent.parent / "CHANGELOG.md"
+ from pathlib import Path
+ changelog_md = Path(__file__).parent.parent / "CHANGELOG.md"
with changelog_md.open(encoding="utf-8") as file:
return next((line.strip() for line in file if line.strip()), "<none>")
except Exception: