From 3d319b7ef0167eb99c0d6d4748cbe7316a90b3b3 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 19 Jan 2010 16:04:32 +0000 Subject: [PATCH] move the 'Requires: pcucontrol' from myplc to PLCAPI, as it's needed by RebootNodeWithPCU fix pcucontrol use of old-fashioned 'which' --- pcucontrol/transports/pyssh/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcucontrol/transports/pyssh/__init__.py b/pcucontrol/transports/pyssh/__init__.py index 78bb951..0c5cf4f 100644 --- a/pcucontrol/transports/pyssh/__init__.py +++ b/pcucontrol/transports/pyssh/__init__.py @@ -43,7 +43,7 @@ if os.name=='posix': # if sufficient. sshpopen2=ptyext.popen2 CLOSE_STR='~.' - tp=os.popen('/usr/bin/which ssh') + tp=os.popen('bash -c "type -p ssh"') SSH_PATH=tp.read().strip() try: tp.close() -- 2.43.0