diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-05-06 01:09:27 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-05-06 01:09:27 (GMT) |
commit | 71adcac1a2609e308f887badf888d07195ffa695 (patch) | |
tree | 8adc166e0b6fd9e7707dfd5eb509c01eb0968918 /Tools/scripts | |
parent | 8c62be88e6d59506b4128537137e73ca9699b05b (diff) | |
download | cpython-71adcac1a2609e308f887badf888d07195ffa695.zip cpython-71adcac1a2609e308f887badf888d07195ffa695.tar.gz cpython-71adcac1a2609e308f887badf888d07195ffa695.tar.bz2 |
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...)
........
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/serve.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/scripts/serve.py b/Tools/scripts/serve.py index e4074c1..6b1321a 100755 --- a/Tools/scripts/serve.py +++ b/Tools/scripts/serve.py @@ -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() |