Fix: Update tools to use venv

This commit is contained in:
2025-05-30 12:15:51 +02:00
parent b691d69ae6
commit b242406b8b
3 changed files with 8 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ import os
from pathlib import Path
TRANSLATIONS_DIR = Path(__file__).resolve().parent.parent
print(TRANSLATIONS_DIR)
VENV_RUNNER_DIR = TRANSLATIONS_DIR / "tools" / "translation_venv.py"
ts_files = glob.glob(str(TRANSLATIONS_DIR / "*.ts"))
success = []
@@ -14,7 +14,7 @@ print("Compiling .ts files to .qm:")
for ts_file in ts_files:
qm_file = ts_file.replace(".ts", ".qm")
cmd = ["qt6-tools", "lrelease", ts_file]
cmd = ["python", str(VENV_RUNNER_DIR), "lrelease", ts_file]
result = subprocess.run(cmd, capture_output=True, text=True)
if result.returncode == 0: