base.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:lolLoadingInfo 作者: fab0l1n 项目源码 文件源码
def isloadingstarted(self):
        if not self.stopThread:
            if dt.timestamp(dt.now()) - os.stat(
                    self.LOGPATH + max([f for f in os.listdir(self.LOGPATH)])).st_ctime < 10:
                try:
                    log.info("start loadingscreen")
                    self.launcher.startLS()
                except Riot.LoLException:
                    self.stopThread = True
                else:
                    self.status("loading started")
                    QtCore.QTimer().singleShot(1000, self.isgamestarted)
            else:
                QtCore.QTimer().singleShot(1000, self.isloadingstarted)
        else:
            log.info("Leaguestate closed")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号