fix choose_server to return "auto" instead of None.
passing server=None to bottle won't work, we need to pass auto here.
This commit is contained in:
parent
d956f7ce67
commit
475bd9e1c6
|
@ -89,14 +89,13 @@ def server_static(filename):
|
|||
|
||||
|
||||
def choose_server():
|
||||
server = "auto"
|
||||
for x in ["paste", "cherrypy", "twisted"]:
|
||||
try:
|
||||
__import__(x)
|
||||
return x
|
||||
except:
|
||||
pass
|
||||
|
||||
return "auto"
|
||||
|
||||
def usage():
|
||||
print """pypiserver [-p PORT] [-r PACKAGES_DIR]
|
||||
|
|
Loading…
Reference in New Issue