當前位置: 首頁>>代碼示例>>Python>>正文


Python MountPoints.set_mountpoint方法代碼示例

本文整理匯總了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
開發者ID:vicgc,項目名稱:nfi,代碼行數:43,代碼來源:AndroidScanner.py


注:本文中的MountPoints.MountPoints.set_mountpoint方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。