当前位置: 首页>>代码示例>>Python>>正文


Python Item.get_install_path方法代码示例

本文整理汇总了Python中Item.get_install_path方法的典型用法代码示例。如果您正苦于以下问题:Python Item.get_install_path方法的具体用法?Python Item.get_install_path怎么用?Python Item.get_install_path使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Item的用法示例。


在下文中一共展示了Item.get_install_path方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: import Item [as 别名]
# 或者: from Item import get_install_path [as 别名]
 def __init__( self , name, type ):
     #self.itemId          = itemId       # Id of the server item 
     self.name            = name         # Name of the item
     self.type            = type         # XBMC Type of the item
     #self.typeInstallPath = installPath  # Install Path for this type of item
     self.typeInstallPath = Item.get_install_path( type )  # Install Path for this type of item
     #self.filesize        = filesize     # Size of the file to download
     
     self.configManager = CONF.configCtrl()
     if not self.configManager.is_conf_valid: raise
     self.CACHEDIR = self.configManager.CACHEDIR
     self.fileMgr = fileMgr()
     
     # NOTE: need to be set in a subclass before calling isAlreadyInstalled or deleteInstalledItem
     self.scraperName     = None
     self.scraperFileList = None # List of teh file for a scraper (xml, image ...)
     #self.installNameList = None
     self.installName     = None # Name of the addon used by XBMC: i.e script dir name, plugin dir name, skin dir name, scraper xml file name
     self.destinationPath = None # 
     self.status          = "INIT" # Status of install :[ INIT | OK | ERROR | DOWNLOADED | EXTRACTED | ALREADYINSTALLED | ALREADYINUSE | CANCELED | INSTALL_DONE ]       
开发者ID:Quihico,项目名称:passion-xbmc,代码行数:22,代码来源:ItemInstaller.py


注:本文中的Item.get_install_path方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。