summaryrefslogtreecommitdiff
path: root/fs/expose/wsgi/serve_home.py
blob: 17c5063a81cc8f6a2536a35b326364ce7821faf8 (plain)
1
2
3
4
5
6
7
8
9
10
from wsgiref.simple_server import make_server

from fs.osfs import OSFS
from wsgi import serve_fs
osfs = OSFS('~/')
application = serve_fs(osfs)

httpd = make_server('', 8000, application)
print "Serving on http://127.0.0.1:8000"
httpd.serve_forever()