def __init__(self, **kwargs) -> None:
super().__init__(**kwargs)
self._client_mngrs: dict[str, _ClientWindowsManager] = {}
+ if self._path_config is None:
+ return
config = {}
- if self._path_config is not None:
- if self._path_config.exists():
- self.log(f'Found config at {self._path_config}, reading …')
- assert self._path_config.is_file()
- with open(self._path_config, 'rb') as f:
- config = toml_load(f)
- else:
- self.log(
- f'No config at {self._path_config}, proceeding without.')
+ if self._path_config.exists():
+ self.log(f'Found config at {self._path_config}, reading …')
+ assert self._path_config.is_file()
+ with open(self._path_config, 'rb') as f:
+ config = toml_load(f)
+ else:
+ self.log(f'No config at {self._path_config}, proceeding without.')
for server_conf in config.get('server', []):
self.log(f'Connecting: {server_conf}')
hostname = server_conf['hostname']