From 013d58853791ce8ece08b6d2530a59543a47ff73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sat, 1 Sep 2018 21:49:11 +0300 Subject: [PATCH] Use os.path.join --- src/main-export-known-hosts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main-export-known-hosts.py b/src/main-export-known-hosts.py index 6cda64c..2ad8e36 100644 --- a/src/main-export-known-hosts.py +++ b/src/main-export-known-hosts.py @@ -55,7 +55,7 @@ def main(): # Default to ~/.ssh/known_hosts parser.add_argument('infile', nargs = '?', - default = homedir + '/.ssh/known_hosts', + default = os.path.join(homedir, '.ssh/known_hosts'), help = 'a file in .ssh/known_hosts format' )