diff --git a/src/sshare/cli.py b/src/sshare/cli.py index cc93ecb..9c0534d 100644 --- a/src/sshare/cli.py +++ b/src/sshare/cli.py @@ -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: