parameters: (cmd)
return_statement: return py3compat.decode(path)
docstring: Find the full path to a command using which.
docstring_summary: Find the full path to a command using which.
docstring_tokens: Find the full path to a command using which .
function: def _find_cmd(cmd):
      """Find the full path to a command using which."""
  
      path = sp.Popen(['/usr/bin/env', 'which', cmd],
                      stdout=sp.PIPE, stderr=sp.PIPE).communicate()[0]
      return py3compat.decode(path)
function_tokens: def _find_cmd ( cmd ) : path = sp . Popen ( [ '/usr/bin/env' , 'which' , cmd ] , stdout = sp . PIPE , stderr = sp . PIPE ) . communicate ( ) [ 0 ] return py3compat . decode ( path )