def idevice(name, *args):
exec_name = 'idevice' + name
exec_path = look_exec(exec_name)
if not exec_path:
raise EnvironmentError('Necessary binary ("%s") not found.' % exec_name)
cmds = [exec_path] + list(args)
try:
output = subprocess.check_output(cmds, stderr=subprocess.STDOUT, shell=False)
return output
except subprocess.CalledProcessError:
raise
评论列表
文章目录