From fea0a59b815582e254035bf421b7b639689dcf05 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 11 May 2011 21:52:53 +0200 Subject: Use settings.static_root as root directory for static files. --- fbin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbin.py b/fbin.py index 3d1c2e5..1212586 100755 --- a/fbin.py +++ b/fbin.py @@ -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) -- cgit v1.2.3