Mercurial > hg > wsgintegrate
changeset 30:1ad7f99f588d
-> python3
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 10 May 2020 18:48:43 -0700 |
parents | d742aff49859 |
children | 840d60377c88 |
files | wsgintegrate/main.py wsgintegrate/server.py |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/wsgintegrate/main.py Sun May 10 18:46:40 2020 -0700 +++ b/wsgintegrate/main.py Sun May 10 18:48:43 2020 -0700 @@ -7,9 +7,10 @@ """ import sys -from factory import WSGIfactory +from .factory import WSGIfactory +from .server import servers from optparse import OptionParser -from server import servers + def main(args=sys.argv[1:]): """CLI""" @@ -66,5 +67,6 @@ print('http://localhost:%d/' % options.port) server(app=factory.load(), port=options.port) + if __name__ == '__main__': main()