diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-03 04:33:23 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-03 04:33:23 +0000 |
commit | df5a3cbefe46dbd6b5eb5b6a62e66d5b7378d4ee (patch) | |
tree | 260b1ca658e7d37ec7c83c86d525b549a50b2675 | |
parent | d1bfc86ffcbe64eea7642ed1292ac89199beb0dc (diff) | |
download | stable-diffusion-webui-gfx803-df5a3cbefe46dbd6b5eb5b6a62e66d5b7378d4ee.tar.gz stable-diffusion-webui-gfx803-df5a3cbefe46dbd6b5eb5b6a62e66d5b7378d4ee.tar.bz2 stable-diffusion-webui-gfx803-df5a3cbefe46dbd6b5eb5b6a62e66d5b7378d4ee.zip |
fallback version info form CHANGELOG.md
-rw-r--r-- | modules/launch_utils.py | 3 |
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:
|