summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2006-02-27 19:01:21 -0800
committerRobey Pointer <robey@lag.net>2006-02-27 19:01:21 -0800
commit90a577c775c4a985455e30fbc4bc44f05c61a3e8 (patch)
treecf82cbf52da8926b07d1c0e7a1d68a19562ac7cf
parent860edff9f45241c1c4c2036b135fd5ca76bd830b (diff)
[project @ robey@lag.net-20060228030121-67362d86a18a352b]
heh, this import will always fail unless we have 'os' handy
-rw-r--r--paramiko/common.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/paramiko/common.py b/paramiko/common.py
index e349e058..3c1bc161 100644
--- a/paramiko/common.py
+++ b/paramiko/common.py
@@ -99,6 +99,7 @@ DISCONNECT_SERVICE_NOT_AVAILABLE, DISCONNECT_AUTH_CANCELLED_BY_USER, \
from Crypto.Util.randpool import PersistentRandomPool, RandomPool
# keep a crypto-strong PRNG nearby
+import os
try:
randpool = PersistentRandomPool(os.path.join(os.path.expanduser('~'), '/.randpool'))
except: