console override ini

This commit is contained in:
Benoit Chesneau 2010-02-03 19:43:45 +01:00
parent bfbac6fa4c
commit eb0414e02c

View File

@ -232,16 +232,15 @@ def run_paster():
else: else:
workers = int(ctx.local_conf.get('workers', 1)) workers = int(ctx.local_conf.get('workers', 1))
host = ctx.local_conf.get('host') if not opts.bind:
port = ctx.local_conf.get('port') host = ctx.local_conf.get('host')
if host: port = ctx.local_conf.get('port')
if port: if host:
bind = "%s:%s" % (host, port) if port:
else: bind = "%s:%s" % (host, port)
bind = host else:
opts.bind = bind bind = host
opts.bind = bind
debug = ctx.global_conf.get('debug') == "true" debug = ctx.global_conf.get('debug') == "true"
if debug: if debug: