diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-05-11 21:52:53 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-05-11 21:52:53 +0200 |
commit | fea0a59b815582e254035bf421b7b639689dcf05 (patch) | |
tree | aeb1a8cb25c1e43ffc6509ab3a812b82ad81e316 | |
parent | 72423bd9cbe526c2d91701043498863c687f8db9 (diff) |
Use settings.static_root as root directory for static files.
-rwxr-xr-x | fbin.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -262,7 +262,7 @@ class Application(object): mime = mimetypes.guess_type(filename, strict = False)[0] or 'application/octet-stream' start_response('200 OK', [('Content-Type', mime)]) - return open('static/' + filename, 'rb') + return open(os.path.join(settings.static_root, filename), 'rb') def help(self, environ, start_response, path): c = Cookie.SimpleCookie(environ['HTTP_COOKIE'] if 'HTTP_COOKIE' in environ else None) |