summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-05-06 00:59:04 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-05-06 00:59:04 (GMT)
commit1f7de71090ab4e04413ab17dbe36ee2373c201c6 (patch)
tree5895ee7fc94387ca2a1f0b4f36791156df947683 /Tools
parent862490a546f2ea92cf8780971a068a105a4c6384 (diff)
downloadcpython-1f7de71090ab4e04413ab17dbe36ee2373c201c6.zip
cpython-1f7de71090ab4e04413ab17dbe36ee2373c201c6.tar.gz
cpython-1f7de71090ab4e04413ab17dbe36ee2373c201c6.tar.bz2
Have the serve.py script announce the directory it is
serving and which port it is serving it on (I can never remember the default port number it uses...)
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/serve.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/scripts/serve.py b/Tools/scripts/serve.py
index 61de63d..b8d9cd7 100755
--- a/Tools/scripts/serve.py
+++ b/Tools/scripts/serve.py
@@ -28,4 +28,5 @@ if __name__ == '__main__':
path = sys.argv[1]
port = int(sys.argv[2]) if len(sys.argv) > 2 else 8000
httpd = simple_server.make_server('', port, app)
+ print "Serving %s on port %s" % (path, port)
httpd.serve_forever()