parent
0f33db248a
commit
2456dd9bbc
|
@ -52,7 +52,7 @@ def main():
|
||||||
app = wsgi.cgi_error_handler(app)
|
app = wsgi.cgi_error_handler(app)
|
||||||
app = wsgi.cgi_encode(app)
|
app = wsgi.cgi_encode(app)
|
||||||
|
|
||||||
print('Serving http://localhost:%s/' % port)
|
print('Serving http://localhost:%s/' % PORT)
|
||||||
httpd = wsgiref.simple_server.make_server('', PORT, app)
|
httpd = wsgiref.simple_server.make_server('', PORT, app)
|
||||||
httpd.serve_forever()
|
httpd.serve_forever()
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -20,5 +20,5 @@ setup(
|
||||||
('share/' + package_name + '/www/cgi', [])
|
('share/' + package_name + '/www/cgi', [])
|
||||||
],
|
],
|
||||||
entry_points = {
|
entry_points = {
|
||||||
'console_scripts': [package_name + '=' + package_name + ':main']
|
'console_scripts': [package_name + '=' + package_name + '.__main__:main']
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue