Add some notes about Tools/scripts/serve.py.

This commit is contained in:
Dirkjan Ochtman 2010-02-24 17:06:31 +00:00
parent 2076666770
commit 60677a78f8
2 changed files with 7 additions and 0 deletions

View file

@ -1,4 +1,10 @@
#!/usr/bin/env python
'''
Small wsgiref based web server. Takes a path to serve from and an
optional port number (defaults to 8000), then tries to serve files.
Mime types are guessed from the file names, 404 errors are thrown
if the file is not found. Used for the make serve target in Doc.
'''
import sys
import os
import mimetypes