X-Git-Url: http://git.onelab.eu/?p=pcucontrol.git;a=blobdiff_plain;f=pcucontrol%2Ftransports%2Fpyssh%2F__init__.py;h=0c5cf4f10f4fe2b5683f7bb5ed69668e5ad96c19;hp=78bb9515c5cf3d551478b9999dbee01bfe3763ab;hb=3d319b7ef0167eb99c0d6d4748cbe7316a90b3b3;hpb=ed5e5b84d6818458f00ac49186212af0ebd0610c 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()