• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python sfile.remove函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python sfile.walk函数代码示例发布时间:2022-05-27
下一篇:
Python sfile.makedirs函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap