[Python-checkins] r80849 - python/trunk/Tools/scripts/serve.py
r.david.murray
python-checkins at python.org
Thu May 6 02:59:04 CEST 2010
Author: r.david.murray
Date: Thu May 6 02:59:04 2010
New Revision: 80849
Log:
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...)
Modified:
python/trunk/Tools/scripts/serve.py
Modified: python/trunk/Tools/scripts/serve.py
==============================================================================
--- python/trunk/Tools/scripts/serve.py (original)
+++ python/trunk/Tools/scripts/serve.py Thu May 6 02:59:04 2010
@@ -28,4 +28,5 @@
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()
More information about the Python-checkins
mailing list