From d0748b77afc3bd736ec514d6102e94b994f22a03 Mon Sep 17 00:00:00 2001 From: answer-huang Date: Sat, 11 Oct 2014 00:24:33 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8D=E5=AD=98=E5=9C=A8=E6=97=B6=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dSYM.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dSYM.py b/dSYM.py index c190c09..2bf394b 100644 --- a/dSYM.py +++ b/dSYM.py @@ -167,7 +167,14 @@ def getdSYMFileFromSqlite(self): cu = cx.cursor() ##查询 cu.execute("select * from archives") - self.filesList = [dsym[0] for dsym in cu.fetchall()] + for dsym in cu.fetchall(): + if not os.path.exists(dsym[0]): + execSql = "delete from archives where file_path ='%s'" % dsym[0] + cu.execute(execSql) + cx.commit() + else: + self.filesList.append(dsym[0])#[dsym[0] for dsym in cu.fetchall() if os.path.exists(dsym[0])] + print self.filesList self.ShowFileType() #获取最后需要的文件地址 From d7607bf70103eaa05515ea2efe87207f9253194a Mon Sep 17 00:00:00 2001 From: answer-huang Date: Fri, 5 Dec 2014 11:07:56 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E5=9B=A0=E4=B8=BA=E6=94=B9=E5=90=8D=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复可能因为改名导致的问题 --- dSYM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dSYM.py b/dSYM.py index 2bf394b..842c651 100644 --- a/dSYM.py +++ b/dSYM.py @@ -194,7 +194,7 @@ def getFilePath(self, rootPath): if os.path.isdir(appPath): if len(os.listdir(appPath)) is not 0: #命令行中需要的文件路径 - self.appFilePath = os.path.join(appPath,fileName.split(".")[0]) + self.appFilePath = os.path.join(appPath,os.listdir(appPath)[0]) #显示关于我的界面 def OnAboutMe(self, event):