diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-02-19 21:58:08 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-02-19 21:58:08 +0100 |
commit | 63f8af1fc3049527a4a4b53a1bbfde90cb4b2eb3 (patch) | |
tree | 8227674ebd87c28df53bad55de401a9264a283b4 /module/web/webinterface.py | |
parent | fixed cli unicode error (diff) | |
download | pyload-63f8af1fc3049527a4a4b53a1bbfde90cb4b2eb3.tar.xz |
encoding fixes
Diffstat (limited to 'module/web/webinterface.py')
-rw-r--r-- | module/web/webinterface.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/web/webinterface.py b/module/web/webinterface.py index 0d94fb4dc..54468d936 100644 --- a/module/web/webinterface.py +++ b/module/web/webinterface.py @@ -90,14 +90,14 @@ JS = JsEngine() TEMPLATE = config.get('webinterface', 'template') DL_ROOT = config.get('general', 'download_folder') LOG_ROOT = config.get('log', 'log_folder') -DEBUG = config.get("general","debug_mode") +DEBUG = config.get("general","debug_mode") or "-d" in sys.argv or "--debug" in sys.argv bottle.debug(DEBUG) cache = join("tmp", "jinja_cache") if not exists(cache): makedirs(cache) -bcc = FileSystemBytecodeCache(cache) +bcc = FileSystemBytecodeCache(cache, '%s.cache') loader = PrefixLoader({ "default": FileSystemLoader(join(PROJECT_DIR, "templates", "jinja", "default")) }) @@ -133,7 +133,6 @@ import pyload_app import json_app import cnl_app - def run_simple(host="0.0.0.0", port="8000"): run(app=web, host=host, port=port, quiet=True) |