summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)