def _prog(shell_cmd):
 if (not util.exe_exists(shell_cmd)):
  plug_util.path_surgery(shell_cmd)
  if (not util.exe_exists(shell_cmd)):
   return None
 return os.path.basename(shell_cmd)

def _prog ( shell_cmd ) : if ( not util . exe_exists ( shell_cmd ) ) : plug_util . path_surgery ( shell_cmd ) if ( not util . exe_exists ( shell_cmd ) ) : return None return os . path . basename ( shell_cmd )
extract the program run by a shell command .