def install(self, filepath):
        ''' TODO(ssx): not tested. '''
        if not os.path.exists(filepath):
            raise EnvironmentError('file "%s" not exists.' % filepath)

        ideviceinstaller = must_look_exec('ideviceinstaller')
        os.system(subprocess.list2cmdline([ideviceinstaller, '-u', self.udid, '-i', filepath]))
def install ( self , filepath ) : if not os . path . exists ( filepath ) : raise EnvironmentError ( 'file "%s" not exists.' % filepath ) ideviceinstaller = must_look_exec ( 'ideviceinstaller' ) os . system ( subprocess . list2cmdline ( [ ideviceinstaller , '-u' , self . udid , '-i' , filepath ] ) )
TODO(ssx): not tested.