Commit recent changes
This commit is contained in:
Binary file not shown.
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user