]> granicus.if.org Git - python/commitdiff
Have the serve.py script announce the directory it is
authorR. David Murray <rdmurray@bitdance.com>
Thu, 6 May 2010 00:59:04 +0000 (00:59 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Thu, 6 May 2010 00:59:04 +0000 (00:59 +0000)
serving and which port it is serving it on (I can
never remember the default port number it uses...)

Tools/scripts/serve.py

index 61de63d1958984954c1b6703801d5c513f601f92..b8d9cd73387d9607340cec000c58520b13b3d92b 100755 (executable)
@@ -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()