diff options
author | Helmut Grohne <helmut@subdivi.de> | 2013-07-27 09:39:14 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2013-07-27 09:39:14 +0200 |
commit | e88f5f74cebed92c42543ce0682a8a49075d859b (patch) | |
tree | 145386d93e869f71ed1a51f391df4334570490ac | |
parent | 0c27c95a9c55b82b2c7e5e90b885c87578e895d0 (diff) | |
download | debian-dedup-e88f5f74cebed92c42543ce0682a8a49075d859b.tar.gz |
also move the static directory into the dedup package
-rw-r--r-- | dedup/static/favicon.ico (renamed from static/favicon.ico) | bin | 4286 -> 4286 bytes | |||
-rw-r--r-- | dedup/static/style.css (renamed from static/style.css) | 0 | ||||
-rwxr-xr-x | webapp.py | 4 |
3 files changed, 1 insertions, 3 deletions
diff --git a/static/favicon.ico b/dedup/static/favicon.ico Binary files differindex 5039835..5039835 100644 --- a/static/favicon.ico +++ b/dedup/static/favicon.ico diff --git a/static/style.css b/dedup/static/style.css index 531ef9d..531ef9d 100644 --- a/static/style.css +++ b/dedup/static/style.css @@ -1,7 +1,6 @@ #!/usr/bin/python import datetime -import os.path import sqlite3 from wsgiref.simple_server import make_server @@ -244,8 +243,7 @@ class Application(object): def main(): app = Application(sqlite3.connect("test.sqlite3")) - staticdir = os.path.join(os.path.dirname(__file__), "static") - app = SharedDataMiddleware(app, {"/": staticdir}) + app = SharedDataMiddleware(app, {"/": ("dedup", "static")}) make_server("0.0.0.0", 8800, app).serve_forever() if __name__ == "__main__": |