Files
mihailkudravcev 98cbb88461 Fix Windows git commit ValueError: embedded null character.
Use git commit -F and strip NULs from argv/version strings (0.3.7).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 13:23:32 +03:00

20 lines
439 B
Python

"""export_1c_help version."""
from __future__ import annotations
from pathlib import Path
_VERSION_FILE = Path(__file__).resolve().parent.parent / "VERSION"
def _read_version() -> str:
try:
text = _VERSION_FILE.read_text(encoding="utf-8-sig", errors="ignore")
return text.replace("\0", "").strip() or "0.0.0"
except OSError:
return "0.0.0"
__version__ = _read_version()
__status__ = "in development"