diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-10-17 21:55:13 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-10-17 21:55:24 +0200 |
commit | 356a3dd29e27cbea0c7a1513bc625ca16035972b (patch) | |
tree | 45bd4de3284411d2488a88b60e2b7e9a5feaefd8 /pyload | |
parent | Update user.html (diff) | |
download | pyload-356a3dd29e27cbea0c7a1513bc625ca16035972b.tar.xz |
fix error page when no webui build is available
Diffstat (limited to 'pyload')
-rw-r--r-- | pyload/web/webinterface.py | 11 |
1 files 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) |