From 06faa6f2ed7015ba49ee4999cc91c8d1f7707ce3 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Sun, 17 Feb 2008 16:32:36 -0800 Subject: [project @ robey@lag.net-20080218003236-d2zgw43ys7xrccdx] explain why we check ~/ssh/ in the demos --- demos/demo_sftp.py | 1 + demos/demo_simple.py | 1 + 2 files changed, 2 insertions(+) (limited to 'demos') diff --git a/demos/demo_sftp.py b/demos/demo_sftp.py index b79bc503..a823fb32 100755 --- a/demos/demo_sftp.py +++ b/demos/demo_sftp.py @@ -66,6 +66,7 @@ try: host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/.ssh/known_hosts')) except IOError: try: + # try ~/ssh/ too, because windows can't have a folder named ~/.ssh/ host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/ssh/known_hosts')) except IOError: print '*** Unable to open host keys file' diff --git a/demos/demo_simple.py b/demos/demo_simple.py index 691457eb..5bcc2148 100755 --- a/demos/demo_simple.py +++ b/demos/demo_simple.py @@ -66,6 +66,7 @@ try: host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/.ssh/known_hosts')) except IOError: try: + # try ~/ssh/ too, because windows can't have a folder named ~/.ssh/ host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/ssh/known_hosts')) except IOError: print '*** Unable to open host keys file' -- cgit v1.2.1