Fix bug with standalone mode
This commit is contained in:
parent
f380b6ae61
commit
4711246a40
9
main.py
9
main.py
|
@ -14,13 +14,8 @@ def main(config):
|
||||||
start_kwargs[attr] = getattr(config, attr)
|
start_kwargs[attr] = getattr(config, attr)
|
||||||
assert hasattr(config, "api_base"), f"Config has no attribute 'api_base'!"
|
assert hasattr(config, "api_base"), f"Config has no attribute 'api_base'!"
|
||||||
|
|
||||||
if "standalone" in start_kwargs:
|
if config.standalone:#it's picky :(
|
||||||
#Why must the standalone client be so picky?
|
start_kwargs = {"standalone":config.standalone}
|
||||||
for illega_attr in ("address", "port", "hostname", "websocket_port",
|
|
||||||
"username", "password", "start_browser", "multiple_instance",
|
|
||||||
"enable_file_cache"):
|
|
||||||
del start_kwargs[illega_attr]
|
|
||||||
|
|
||||||
|
|
||||||
# start the webserver:
|
# start the webserver:
|
||||||
api.BASE_URL = config.api_base
|
api.BASE_URL = config.api_base
|
||||||
|
|
Loading…
Reference in New Issue