From 356a3dd29e27cbea0c7a1513bc625ca16035972b Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 17 Oct 2013 21:55:13 +0200 Subject: fix error page when no webui build is available --- pyload/web/webinterface.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pyload/web/webinterface.py b/pyload/web/webinterface.py index b0faf94a9..21c5f4a03 100644 --- a/pyload/web/webinterface.py +++ b/pyload/web/webinterface.py @@ -55,14 +55,15 @@ if PREFIX: if PREFIX and not PREFIX.startswith("/"): PREFIX = "/" + PREFIX -APP_PATH = "dist" -UNAVAILALBE = False +APP_PATH = "app" +UNAVAILALBE = True # webUI build is available if exists(join(PROJECT_DIR, "app", "components")) and exists(join(PROJECT_DIR, ".tmp")) and config.get('webinterface', 'develop'): - APP_PATH = "app" -elif not exists(join(PROJECT_DIR, "dist", "index.html")): - UNAVAILALBE = True + UNAVAILALBE = False +elif exists(join(PROJECT_DIR, "dist", "index.html")): + APP_PATH = "dist" + UNAVAILALBE = False DEBUG = config.get("general", "debug_mode") or "-d" in sys.argv or "--debug" in sys.argv bottle.debug(DEBUG) -- cgit v1.2.3