From de76cd16ea5a288e93d22707592d5392eec7eb82 Mon Sep 17 00:00:00 2001 From: Jonathan Carter Date: Sat, 14 Mar 2026 15:14:37 +0200 Subject: [PATCH] Commit recent changes --- .../disks/__pycache__/__init__.cpython-313.pyc | Bin 415 -> 415 bytes src/yasi_applets/install/__init__.py | 2 +- src/yasi_applets/install/routes.py | 2 +- src/yasi_applets/users/routes.py | 2 +- src/yasi_applets/welcome/routes.py | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/yasi_applets/disks/__pycache__/__init__.cpython-313.pyc b/src/yasi_applets/disks/__pycache__/__init__.cpython-313.pyc index f78dd007d308c529913fde76932818d5a9abf068..00f56713bd3731302a239d1d3a478ed4e8503bc4 100644 GIT binary patch delta 20 acmbQwJfE5SGcPX}0}%KtZrI2@g%JQVO9a>e delta 20 acmbQwJfE5SGcPX}0}yPmP2I>ng%JQXBLxZo diff --git a/src/yasi_applets/install/__init__.py b/src/yasi_applets/install/__init__.py index 2462621..79712ce 100644 --- a/src/yasi_applets/install/__init__.py +++ b/src/yasi_applets/install/__init__.py @@ -3,7 +3,7 @@ from flask import Blueprint bp = Blueprint('install', __name__, template_folder='', static_folder='static', - static_url_path='/welcome/static') + static_url_path='/install/static') from yasi_applets.install import routes diff --git a/src/yasi_applets/install/routes.py b/src/yasi_applets/install/routes.py index 635a824..2f7eff1 100644 --- a/src/yasi_applets/install/routes.py +++ b/src/yasi_applets/install/routes.py @@ -43,7 +43,7 @@ def run_script(): status["status"] = "running" process = subprocess.Popen( - ["bash", "/data/jonathan/devel/highvoltage/system-installer/daemon/src/fake-install-shell.sh"], + ["bash", "/home/jonathan/devel/highvoltage/yasi/yasi-daemon/src/fake-install-shell.sh"], stdout = subprocess.PIPE, stderr = subprocess.STDOUT, text = True) diff --git a/src/yasi_applets/users/routes.py b/src/yasi_applets/users/routes.py index f917f96..371922a 100644 --- a/src/yasi_applets/users/routes.py +++ b/src/yasi_applets/users/routes.py @@ -10,7 +10,7 @@ def set_language(LANG): """ Sets language for this applet """ - translations = gettext.translation("users", '/usr/share/yasi-daemon/yasi_applets/users/locales', + translations = gettext.translation("users", './yasi_applets/users/locales', fallback=True, languages=[LANG]) translations.install() _ = translations.gettext diff --git a/src/yasi_applets/welcome/routes.py b/src/yasi_applets/welcome/routes.py index 520b9f1..0f378e9 100644 --- a/src/yasi_applets/welcome/routes.py +++ b/src/yasi_applets/welcome/routes.py @@ -15,7 +15,7 @@ def set_language(LANG): Sets language for this applet """ # TODO: unhardcode this path - translations = gettext.translation("welcome", '/usr/share/yasi-daemon/yasi_applets/welcome/locales', + translations = gettext.translation("welcome", './yasi_applets/welcome/locales', fallback=True, languages=[LANG]) translations.install() _ = translations.gettext