Fix bug with standalone mode

This commit is contained in:
Peder Bergebakken Sundt 2018-03-02 18:27:33 +01:00
parent f380b6ae61
commit 4711246a40
1 changed files with 2 additions and 7 deletions

View File

@ -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