summaryrefslogtreecommitdiffhomepage
path: root/demos
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2008-02-17 16:32:36 -0800
committerRobey Pointer <robey@lag.net>2008-02-17 16:32:36 -0800
commit06faa6f2ed7015ba49ee4999cc91c8d1f7707ce3 (patch)
tree0c1a0dafa7e8a5ae17736cf7bb20648ff9e8fc89 /demos
parent888aa8d5b7288496343e2700f94c56ddd25f2e65 (diff)
[project @ robey@lag.net-20080218003236-d2zgw43ys7xrccdx]
explain why we check ~/ssh/ in the demos
Diffstat (limited to 'demos')
-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'