From c02d95aafb77b75b11a1d3ae7a623c16e4a655d0 Mon Sep 17 00:00:00 2001 From: Gnarwhal Date: Thu, 1 Aug 2024 15:55:14 +0000 Subject: [PATCH] Fixed issue with reading --- src/sshare/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: