Fixed issue with reading
This commit is contained in:
parent
82619349b0
commit
c02d95aafb
1 changed files with 3 additions and 1 deletions
|
@ -30,7 +30,9 @@ class Config:
|
|||
config_directory = f"{os.environ["HOME"]}/.config"
|
||||
_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")
|
||||
if host == None:
|
||||
|
|
Loading…
Reference in a new issue