本文整理汇总了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 ]