summaryrefslogtreecommitdiffstats
path: root/pyload/webui/__init__.py
diff options
context:
space:
mode:
authorGravatar root <root@raspberrypi.(none)> 2015-04-04 21:15:11 +0200
committerGravatar root <root@raspberrypi.(none)> 2015-04-04 21:15:11 +0200
commit7e044ca6f887fabf456631b4da88bf18e07eded1 (patch)
tree4042921b8388833bbff0def5d91847e4f0925f0c /pyload/webui/__init__.py
parentfix again (diff)
downloadpyload-7e044ca6f887fabf456631b4da88bf18e07eded1.tar.xz
fix gui
Diffstat (limited to 'pyload/webui/__init__.py')
-rw-r--r--pyload/webui/__init__.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/pyload/webui/__init__.py b/pyload/webui/__init__.py
index 0d2f1ca36..1310c629d 100644
--- a/pyload/webui/__init__.py
+++ b/pyload/webui/__init__.py
@@ -24,20 +24,20 @@ from middlewares import StripPathMiddleware, GZipMiddleWare, PrefixMiddleware
SETUP = None
PYLOAD = None
-from pyload.manager.thread import ServerThread
+from pyload.manager.thread import Server
from pyload.network.JsEngine import JsEngine
-if not ServerThread.core:
- if ServerThread.setup:
- SETUP = ServerThread.setup
+if not Server.core:
+ if Server.setup:
+ SETUP = Server.setup
config = SETUP.config
JS = JsEngine(SETUP)
else:
raise Exception("Could not access pyLoad Core")
else:
- PYLOAD = ServerThread.core.api
- config = ServerThread.core.config
- JS = JsEngine(ServerThread.core)
+ PYLOAD = Server.core.api
+ config = Server.core.config
+ JS = JsEngine(Server.core)
THEME = config.get('webinterface', 'theme')
DL_ROOT = config.get('general', 'download_folder')
@@ -58,7 +58,7 @@ if not exists(cache):
bcc = FileSystemBytecodeCache(cache, '%s.cache')
-loader = FileSystemLoader(THEME_DIR)
+loader = FileSystemLoader([THEME_DIR, join(THEME_DIR, THEME)])
env = Environment(loader=loader, extensions=['jinja2.ext.i18n', 'jinja2.ext.autoescape'], trim_blocks=True, auto_reload=False,
bytecode_cache=bcc)