Unverified Commit d1bfc86f authored by w-e-w's avatar w-e-w Committed by GitHub
Browse files

Update modules/launch_utils.py



Co-authored-by: default avatarAarni Koskela <akx@iki.fi>
parent 0dd6bca4
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -68,8 +68,12 @@ def git_tag():
    try:
        return subprocess.check_output([git, "describe", "--tags"], shell=False, encoding='utf8').strip()
    except Exception:
        with open(os.path.dirname(os.path.abspath(__file__)) + "/../CHANGELOG.md") as file:
        try:
            changelog_md = pathlib.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:
            return "<none>"


def run(command, desc=None, errdesc=None, custom_env=None, live: bool = default_command_live) -> str: