diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-02-14 15:17:07 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-02-14 15:17:07 +0100 |
commit | 1ecd9254b361d4e026e7a25f1b47382d1015e63c (patch) | |
tree | 183e5215126435b5b9bc986d86e616bafccb1645 /module/web/ServerThread.py | |
parent | some parts of cli working again (diff) | |
download | pyload-1ecd9254b361d4e026e7a25f1b47382d1015e63c.tar.xz |
default thrift backend
Diffstat (limited to 'module/web/ServerThread.py')
-rw-r--r-- | module/web/ServerThread.py | 7 |
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.")) |