1
0
mirror of https://github.com/pypiserver/pypiserver synced 2025-02-22 19:19:37 +01:00

flush stdout before calling bottle's run

also show the http url.
This commit is contained in:
Ralf Schmitt 2012-10-18 22:06:34 +02:00
parent a1fc09d14c
commit 515bfb5b7b

@ -240,7 +240,8 @@ def main(argv=None):
fallback_url=fallback_url
)
server = server or "auto"
sys.stdout.write("This is pypiserver %s serving %r on %s:%s\n\n" % (__version__, root, host, port))
sys.stdout.write("This is pypiserver %s serving %r on http://%s:%s\n\n" % (__version__, root, host, port))
sys.stdout.flush()
run(app=a, host=host, port=port, server=server)