mango-explorer/bin/version

11 lines
345 B
Plaintext
Executable File

#!/usr/bin/env pyston3
import os.path
version_filename: str = os.path.join(os.path.dirname(__file__), "../.version")
if os.path.isfile(version_filename):
with open(os.path.join(os.path.dirname(__file__), "../.version")) as version_file:
print(version_file.read())
else:
print(f"No version file found at '{version_filename}'.")