2021-06-25 10:02:33 -07:00
|
|
|
#!/usr/bin/env pyston3
|
|
|
|
|
|
|
|
import os.path
|
|
|
|
|
2021-06-25 10:04:55 -07:00
|
|
|
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}'.")
|