summaryrefslogtreecommitdiffstats
path: root/module/web/ServerThread.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/ServerThread.py')
-rw-r--r--module/web/ServerThread.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/module/web/ServerThread.py b/module/web/ServerThread.py
index 297eb2f8f..9af888c6e 100644
--- a/module/web/ServerThread.py
+++ b/module/web/ServerThread.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
from __future__ import with_statement
-from os.path import exists
+from os import makedirs
+from os.path import exists, join
import threading
import logging
@@ -27,6 +28,10 @@ class WebServer(threading.Thread):
import webinterface
global webinterface
+ cache = join("tmp", "jinja_cache")
+ if not exists(cache):
+ makedirs(cache)
+
if self.https:
if not exists(self.cert) or not exists(self.key):
log.warning(_("SSL certificates not found."))