summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-05-11 21:52:53 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-05-11 21:52:53 +0200
commitfea0a59b815582e254035bf421b7b639689dcf05 (patch)
treeaeb1a8cb25c1e43ffc6509ab3a812b82ad81e316
parent72423bd9cbe526c2d91701043498863c687f8db9 (diff)
Use settings.static_root as root directory for static files.
-rwxr-xr-xfbin.py2
1 files changed, 1 insertions, 1 deletions
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)