本文整理匯總了Python中MountPoints.MountPoints.set_mountpoint方法的典型用法代碼示例。如果您正苦於以下問題:Python MountPoints.set_mountpoint方法的具體用法?Python MountPoints.set_mountpoint怎麽用?Python MountPoints.set_mountpoint使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類MountPoints.MountPoints
的用法示例。
在下文中一共展示了MountPoints.set_mountpoint方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _begin_scan
# 需要導入模塊: from MountPoints import MountPoints [as 別名]
# 或者: from MountPoints.MountPoints import set_mountpoint [as 別名]
def _begin_scan(self, location):
#----------------------------------------------------------------------
#Initiating device version scanning
#----------------------------------------------------------------------
#XXX should remove this and add it in HttpServe when loading case
self.print_queue.put("** Determining Device/Apps versions **")
mounts = MountPoints()
mounts.set_mountpoint(MountPoints.MOUNT_DATA, location)
versions = AndroidDeviceVersion(self.print_queue,mounts)
versions.populate_info()
versions.print_debug()
#----------------------------------------------------------------------
#Initiating file system scanning and populating of data
#----------------------------------------------------------------------
self.print_queue.put("** Running Application Parser **")
app_parser = ApplicationParser( self.print_queue, self.extract_store,
location, settings=self.settings,
versions=versions )
#XXX note that this is hard-coded. If for some reason Android app store
# location changes, this would need to reflect it
app_parser.scan_directory( os.path.join( location, "data" ) )
self.print_queue.put("** Running Configuration Parser **")
misc_parser = MiscParser( self.print_queue, self.extract_store,
settings=self.settings, versions=versions )
misc_parser.scan_directory(location)
#----------------------------------------------------------------------
# Initiating auxiliary modules
#----------------------------------------------------------------------
self.print_queue.put("** Running Auxiliary Modules **")
auxmods = Importer().get_package_modules( "AndroidAuxiliary",
IAuxiliary(), ( self.extract_store, self.print_queue ) )
for mod in auxmods:
mod.begin()
#Finished, sending FIN signal
self.print_queue.put("FIN")
return