10 lines
205 B
Python
10 lines
205 B
Python
from pathlib import Path
|
|
|
|
|
|
def get_version() -> str:
|
|
f = Path(__file__).resolve().parent.parent / "VERSION"
|
|
try:
|
|
return f.read_text().strip()
|
|
except OSError:
|
|
return "0.0.0-dev"
|