From ad63a98bdf285ca81567bea5ccfe259cc6320158 Mon Sep 17 00:00:00 2001 From: Gnarwhal Date: Thu, 1 Aug 2024 16:07:35 +0000 Subject: [PATCH] Configuration file fixes --- src/sshare/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sshare/cli.py b/src/sshare/cli.py index cc93ecb..135a263 100644 --- a/src/sshare/cli.py +++ b/src/sshare/cli.py @@ -58,13 +58,13 @@ class Config: sys.exit(1) self.ssh_port = ssh.get("port") self.ssh_user = ssh.get("user") - self.ssh_path = ssh.get("directory") + self.ssh_path = ssh.get("path") if self.ssh_port == None: self.ssh_port = 22 if self.ssh_user == None: self.ssh_user = getpass.getuser() if self.ssh_path == None: - print("Error: 'ssh.directory' cannot be 'None'") + print("Error: 'ssh.path' cannot be 'None'") sys.exit(1) def _load_from_file(self, config_path):