All checks were successful
Build And Test / build-and-push (push) Successful in 4m14s
13 lines
346 B
Python
13 lines
346 B
Python
import os
|
|
|
|
def version_processor(request):
|
|
version_file_path = os.path.join(os.path.dirname(__file__), "../../version")
|
|
|
|
try:
|
|
with open(version_file_path, "r", encoding="utf-8") as file:
|
|
version = file.read().strip()
|
|
except FileNotFoundError:
|
|
version = "Version not found"
|
|
|
|
return {"version": version}
|