diff options
author | root <root@raspberrypi.(none)> | 2015-04-04 21:15:11 +0200 |
---|---|---|
committer | root <root@raspberrypi.(none)> | 2015-04-04 21:15:11 +0200 |
commit | 7e044ca6f887fabf456631b4da88bf18e07eded1 (patch) | |
tree | 4042921b8388833bbff0def5d91847e4f0925f0c /pyload/webui/__init__.py | |
parent | fix again (diff) | |
download | pyload-7e044ca6f887fabf456631b4da88bf18e07eded1.tar.xz |
fix gui
Diffstat (limited to 'pyload/webui/__init__.py')
-rw-r--r-- | pyload/webui/__init__.py | 16 |
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) |