move the 'Requires: pcucontrol' from myplc to PLCAPI, as it's needed by RebootNodeWithPCU
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 19 Jan 2010 16:04:32 +0000 (16:04 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 19 Jan 2010 16:04:32 +0000 (16:04 +0000)
fix pcucontrol use of old-fashioned 'which'

pcucontrol/transports/pyssh/__init__.py

index 78bb951..0c5cf4f 100644 (file)
@@ -43,7 +43,7 @@ if os.name=='posix':
                    # if sufficient.\r
     sshpopen2=ptyext.popen2\r
     CLOSE_STR='~.'\r
-    tp=os.popen('/usr/bin/which ssh')\r
+    tp=os.popen('bash -c "type -p ssh"')\r
     SSH_PATH=tp.read().strip()\r
     try:\r
         tp.close()\r