Fixed issue with reading

This commit is contained in:
Gnarwhal 2024-08-01 15:55:14 +00:00
parent 82619349b0
commit c02d95aafb
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174

View file

@ -30,7 +30,9 @@ class Config:
config_directory = f"{os.environ["HOME"]}/.config" config_directory = f"{os.environ["HOME"]}/.config"
_config = self._load_from_file(f"{config_directory}/sshare/config.toml") _config = self._load_from_file(f"{config_directory}/sshare/config.toml")
self.source_directory = _config.get("source_directory") default = _config.get("default")
if default != None:
self.source_directory = default.get("source_directory")
host = _config.get("host") host = _config.get("host")
if host == None: if host == None: