]> granicus.if.org Git - python/commitdiff
Merged revisions 80849 via svnmerge from
authorR. David Murray <rdmurray@bitdance.com>
Thu, 6 May 2010 01:09:27 +0000 (01:09 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Thu, 6 May 2010 01:09:27 +0000 (01:09 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80849 | r.david.murray | 2010-05-05 20:59:04 -0400 (Wed, 05 May 2010) | 4 lines

  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...)
........

Tools/scripts/serve.py

index e4074c1afd8dfac527dc8126e37c789f53c3cc66..6b1321a0671b7dce3a48d3f58154117d75730742 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 {} on port {}".format(path, port))
     httpd.serve_forever()