mirror of
https://github.com/python/cpython.git
synced 2025-08-08 02:48:55 +00:00
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...)
This commit is contained in:
parent
862490a546
commit
1f7de71090
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue