comparison wsgintegrate/main.py @ 22:37b47aedcc3d

STUB: wsgintegrate/main.py
author Jeff Hammel <k0scist@gmail.com>
date Thu, 06 Mar 2014 23:14:37 -0800
parents 3621afe99a72
children d742aff49859
comparison
equal deleted inserted replaced
21:3621afe99a72 22:37b47aedcc3d
59 print factory.ini_config() 59 print factory.ini_config()
60 return 60 return
61 61
62 # serve it 62 # serve it
63 server_name = getattr(options, 'server', 'wsgiref') 63 server_name = getattr(options, 'server', 'wsgiref')
64 print ("Serving with {}".format(server_name)) 64 print ("Serving with %s" % (server_name))
65 server = servers[server_name] 65 server = servers[server_name]
66 print ('http://localhost:%d/' % options.port) 66 print ('http://localhost:%d/' % options.port)
67 server(app=factory.load(), port=options.port) 67 server(app=factory.load(), port=options.port)
68 68
69 if __name__ == '__main__': 69 if __name__ == '__main__':