refactor: move build_info.json to root folder, update workflow to support changes, rename function to more accurate name

This commit is contained in:
Vxrtrauter
2026-03-16 02:02:03 +01:00
parent 0e05f42741
commit a443f64501
4 changed files with 5 additions and 11 deletions
+2 -2
View File
@@ -8,9 +8,9 @@ import platform
import json
import os
def check_version():
def get_version():
# Get build info filepath
build_info_path = Path(__file__).resolve().parents[3] / "build_info.json" # parents[3] = climb up 4 directories from the file ran
build_info_path = Path(__file__).resolve().parents[4] / "build_info.json" # parents[4] = climb up 5 directories from the file ran
if os.path.exists(build_info_path):
with open(build_info_path, "r") as f:
build_info = json.load(f)