summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xdemos/demo_sftp.py1
-rwxr-xr-xdemos/demo_simple.py1
2 files changed, 2 insertions, 0 deletions
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'