Commit 71adcac1 authored by R. David Murray's avatar R. David Murray

Merged revisions 80849 via svnmerge from

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...)
........
parent 8c62be88
......@@ -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()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment