1 Commits

Author SHA1 Message Date
Jonathan Carter
de76cd16ea Commit recent changes 2026-03-14 15:14:37 +02:00
5 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ from flask import Blueprint
bp = Blueprint('install', __name__, bp = Blueprint('install', __name__,
template_folder='', template_folder='',
static_folder='static', static_folder='static',
static_url_path='/welcome/static') static_url_path='/install/static')
from yasi_applets.install import routes from yasi_applets.install import routes

View File

@@ -43,7 +43,7 @@ def run_script():
status["status"] = "running" status["status"] = "running"
process = subprocess.Popen( 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, stdout = subprocess.PIPE,
stderr = subprocess.STDOUT, stderr = subprocess.STDOUT,
text = True) text = True)

View File

@@ -10,7 +10,7 @@ def set_language(LANG):
""" """
Sets language for this applet 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]) fallback=True, languages=[LANG])
translations.install() translations.install()
_ = translations.gettext _ = translations.gettext

View File

@@ -15,7 +15,7 @@ def set_language(LANG):
Sets language for this applet Sets language for this applet
""" """
# TODO: unhardcode this path # 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]) fallback=True, languages=[LANG])
translations.install() translations.install()
_ = translations.gettext _ = translations.gettext