diff options
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) | 
