本文整理汇总了Python中sfile.remove函数的典型用法代码示例。如果您正苦于以下问题:Python remove函数的具体用法?Python remove怎么用?Python remove使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了remove函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: download
def download(path, zipfile):
import download
import extract
download.download(url, zipfile)
extract.all(zipfile, path)
sfile.remove(zipfile)
开发者ID:jaffa222,项目名称:Dixie-Deans-XBMC-Repo,代码行数:7,代码来源:default.py
示例2: removeCleanChannel
def removeCleanChannel(self, id):
path = os.path.join(OTT_CHANNELS, id)
if sfile.exists(path):
try:
sfile.remove(path)
except:
pass
开发者ID:noobsandnerds,项目名称:noobsandnerds,代码行数:7,代码来源:osd.py
示例3: removeCleanChannel
def removeCleanChannel(self, id):
try: del self.channelDict[id]
except: pass
path = os.path.join(channelPath, id)
if sfile.exists(path):
try: sfile.remove(path)
except: pass
开发者ID:noobsandnerds,项目名称:noobsandnerds,代码行数:8,代码来源:source.py
示例4: DeleteFile
def DeleteFile(path):
tries = 5
while sfile.exists(path) and tries > 0:
tries -= 1
try:
sfile.remove(path)
except:
xbmc.sleep(500)
开发者ID:XvBMC,项目名称:spoyser-repo,代码行数:8,代码来源:utils.py
示例5: deleteFile
def deleteFile(path):
tries = 5
while os.path.exists(path) and tries > 0:
tries -= 1
try:
sfile.remove(path)
break
except:
xbmc.sleep(500)
开发者ID:noobsandnerds,项目名称:Dixie-Deans-XBMC-Repo,代码行数:9,代码来源:utils.py
示例6: downloadSkins
def downloadSkins(url, path, zipfile):
import download
import extract
DialogOK('A new skin update is available.', 'It will be downloaded and installed', 'into your On-Tapp.TV system.')
download.download(url, zipfile)
extract.all(zipfile, path, dp='Installing skin update')
sfile.remove(zipfile)
开发者ID:abauerx,项目名称:Dixie-Deans-XBMC-Repo,代码行数:9,代码来源:utilsOTT.py
示例7: downloadLogos
def downloadLogos(url, path, zipfile):
import download
import extract
DialogOK('Some new logos are available.', 'They will be downloaded and added to your logopack.')
download.download(url, zipfile)
extract.all(zipfile, path, dp='Installing logo update')
sfile.remove(zipfile)
开发者ID:abauerx,项目名称:Dixie-Deans-XBMC-Repo,代码行数:9,代码来源:utilsOTT.py
示例8: downloadSkins
def downloadSkins(url, path, zipfile):
import download
import extract
utils.DialogOK('Una nueva version actualizada está disponible.', 'Se puede descargar e instalar "," en su sistema GVAX.')
download.download(url, zipfile)
extract.all(zipfile, path, dp='Installing skin update')
sfile.remove(zipfile)
开发者ID:Josh5,项目名称:Dixie-Deans-XBMC-Repo,代码行数:9,代码来源:dsf.py
示例9: downloadSkins
def downloadSkins(url, path, zipfile):
import download
import extract
DialogOK("A new skin update is available.", "It will be downloaded and installed", "into your On-Tapp.TV system.")
download.download(url, zipfile)
extract.all(zipfile, path, dp="Installing skin update")
sfile.remove(zipfile)
开发者ID:jaffa222,项目名称:Dixie-Deans-XBMC-Repo,代码行数:9,代码来源:utilsOTT.py
示例10: downloadLogos
def downloadLogos(url, path, zipfile):
import download
import extract
utils.DialogOK('Algunos de los nuevos logotipos están disponibles.', 'Pueden ser descargados y añadidos a su logopack.')
download.download(url, zipfile)
extract.all(zipfile, path, dp='Installing logo update')
sfile.remove(zipfile)
开发者ID:Josh5,项目名称:Dixie-Deans-XBMC-Repo,代码行数:9,代码来源:dsf.py
示例11: doOTTUpdate
def doOTTUpdate(url, path, zipfile, ottupdate):
import download
import extract
utils.DialogOK('A GVAX "Live Update" está disponible.', 'Actualización %s será descargado e instalado en su sistema.'% (ottupdate), 'Gracias.')
download.download(url, zipfile)
extract.all(zipfile, path, dp='Installing python update')
sfile.remove(zipfile)
utils.Log('OTT Update %s installed' % str(ottupdate))
xbmc.executebuiltin('UpdateLocalAddons')
开发者ID:Josh5,项目名称:Dixie-Deans-XBMC-Repo,代码行数:10,代码来源:dsf.py
示例12: deleteFiles
def deleteFiles():
try:
sfile.remove(hotkey)
dixie.DialogOK('On-Tapp.TV Hot Key successfully reset.', '', '')
except Exception, e:
error = str(e)
dixie.log('%s :: Error resetting OTTV' % error)
dixie.DialogOK('On-Tapp.TV Hot Key failed to reset.', error, 'Please restart Kodi and try again.')
开发者ID:Josh5,项目名称:Dixie-Deans-XBMC-Repo,代码行数:10,代码来源:resetHotkey.py
示例13: deleteFiles
def deleteFiles():
try:
sfile.remove(hotkey)
dixie.DialogOK('TV Portal Hot Key successfully reset.', 'Please restart Kodi for this to take affect.', 'Thank you.')
except Exception, e:
error = str(e)
dixie.log('%s :: Error resetting TV Portal' % error)
dixie.DialogOK('TV Portal Hot Key failed to reset.', error, 'Please restart Kodi and try again.')
开发者ID:noobsandnerds,项目名称:Dixie-Deans-XBMC-Repo,代码行数:10,代码来源:resetHotkey.py
示例14: doOTTUpdate
def doOTTUpdate(url, path, zipfile, ottupdate):
import download
import extract
DialogOK('An On-Tapp.TV "Live Update" is available.', 'OTTV Update %s will be downloaded and installed on your system.' % (ottupdate), 'Thank you.')
download.download(url, zipfile)
extract.all(zipfile, path, dp='Installing python update')
sfile.remove(zipfile)
Log('OTT Update %s installed' % str(ottupdate))
xbmc.executebuiltin('UpdateLocalAddons')
开发者ID:abauerx,项目名称:Dixie-Deans-XBMC-Repo,代码行数:10,代码来源:utilsOTT.py
示例15: doDSFSkinUpdate
def doDSFSkinUpdate(url, path, zipfile, kodiskin):
import download
import extract
utils.DialogOK('Un GVAX es "Live Update" disponible.', 'Actualización %s será descargado e instalado en su sistema.' % (kodiskin), 'Gracias.')
download.download(url, zipfile)
extract.all(zipfile, path, dp='Installing skin update')
sfile.remove(zipfile)
utils.Log('Skin Update %s installed' % str(kodiskin))
xbmc.executebuiltin('UpdateLocalAddons')
开发者ID:noobsandnerds,项目名称:Dixie-Deans-XBMC-Repo,代码行数:11,代码来源:dsf.py
示例16: deleteFiles
def deleteFiles():
try:
deleteDB.deleteDB()
sfile.rmtree(epgchan)
sfile.remove(settings)
dixie.DialogOK('On-Tapp.TV successfully reset.', 'It will be recreated next time', 'you start the guide.')
except Exception, e:
error = str(e)
dixie.log('%s :: Error resetting OTTV' % error)
dixie.DialogOK('On-Tapp.TV failed to reset.', error, 'Please restart Kodi and try again.')
开发者ID:abauerx,项目名称:Dixie-Deans-XBMC-Repo,代码行数:12,代码来源:resetAddon.py
示例17: backupSettings
def backupSettings():
udata = xbmc.translatePath('special://profile/')
path = dixie.PROFILE
src = os.path.join(path, ORIGINAL)
dst = os.path.join(udata, BACKUP)
try:
sfile.remove(dst)
sfile.copy(src, dst)
dixie.SetSetting('validator', 1)
except Exception, e:
pass
开发者ID:abauerx,项目名称:Dixie-Deans-XBMC-Repo,代码行数:12,代码来源:settings.py
示例18: removeKepmap
def removeKepmap():
try:
file = 'zOTT_Keymap.xml'
dst = os.path.join('special://profile/keymaps', file)
if sfile.exists(dst):
sfile.remove(dst)
xbmc.sleep(1000)
xbmc.executebuiltin('Action(reloadkeymaps)')
except Exception, e:
pass
开发者ID:Quihico,项目名称:repository.spartacus,代码行数:12,代码来源:dixie.py
示例19: deleteFiles
def deleteFiles():
try:
sfile.rmtree(epgdata)
sfile.remove(settings)
sfile.remove(hotkey)
dixie.DialogOK('TV Portal successfully reset.', 'It will be recreated next time', 'you start the guide.')
except Exception, e:
error = str(e)
dixie.log('%s :: Error resetting TV Portal' % error)
dixie.DialogOK('TV Portal failed to reset.', error, 'Please restart Kodi and try again.')
开发者ID:noobsandnerds,项目名称:Dixie-Deans-XBMC-Repo,代码行数:12,代码来源:resetAddon.py
示例20: doEPGUpdate
def doEPGUpdate(url, path, zipfile, epgupdate):
import download
import extract
DialogOK(
'An On-Tapp.EPG "Live Update" is available.',
"EPG Update %s will be downloaded and installed on your system." % (epgupdate),
"Thank you.",
)
download.download(url, zipfile)
extract.all(zipfile, path, dp="Installing python update")
sfile.remove(zipfile)
Log("EPG Update %s installed" % str(epgupdate))
xbmc.executebuiltin("UpdateLocalAddons")
开发者ID:jaffa222,项目名称:Dixie-Deans-XBMC-Repo,代码行数:15,代码来源:utilsOTT.py
注:本文中的sfile.remove函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论