summaryrefslogtreecommitdiffstats
path: root/planetlab/pssh/bin/pssh-askpass
diff options
context:
space:
mode:
Diffstat (limited to 'planetlab/pssh/bin/pssh-askpass')
-rwxr-xr-xplanetlab/pssh/bin/pssh-askpass11
1 files changed, 11 insertions, 0 deletions
diff --git a/planetlab/pssh/bin/pssh-askpass b/planetlab/pssh/bin/pssh-askpass
new file mode 100755
index 0000000..beb9e8b
--- /dev/null
+++ b/planetlab/pssh/bin/pssh-askpass
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+
+import os
+import sys
+
+parent, bindir = os.path.split(os.path.dirname(os.path.abspath(sys.argv[0])))
+if os.path.exists(os.path.join(parent, 'psshlib')):
+ sys.path.insert(0, parent)
+
+from psshlib.askpass_client import askpass_main
+askpass_main()