full.py 文件源码

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

项目:GUI-for-EWBF 作者: K4P11 项目源码 文件源码
def mine(self):
        d=self.path.text()
        name=self.exeline.text()
        if d!='Path to the file used to start miner' and d!='':
            if os.path.isfile(d)==True:
                d='/'.join(d.split('/')[:-1])
            try:
                os.chdir(d)
                process.start(name)
                self.tnow=time.time()
            except PermissionError:
                QMessageBox.critical(self,"Error","Problems when accessing directory",QMessageBox.Ok)
            except FileNotFoundError:
                QMessageBox.critical(self,"Error","Bad directory path",QMessageBox.Ok)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号