Skip to content

Commit

Permalink
Added version.py script.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmosousa committed Nov 19, 2023
1 parent c5a4ff7 commit ba1baec
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tieval/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from pathlib import Path

PWD = Path(__file__).parent.resolve()

def string():
try:
version = (PWD / "VERSION").read_text(encoding="utf-8").strip()
if version:
return version
except:
pass
return "unknown (git checkout)"

0 comments on commit ba1baec

Please sign in to comment.