From d444fae8fc1e2dab01971f4b1ed3b0ddcd40c5c2 Mon Sep 17 00:00:00 2001 From: ShrLnm Date: Sun, 5 Jun 2022 05:31:13 +0000 Subject: [PATCH] fix for wrong file name in dumps folder --- pyren/mod_ddt_screen.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyren/mod_ddt_screen.py b/pyren/mod_ddt_screen.py index 9eaa941..b503222 100755 --- a/pyren/mod_ddt_screen.py +++ b/pyren/mod_ddt_screen.py @@ -491,11 +491,11 @@ class DDTScreen (tk.Frame): if self.decu.ecufname.split ('/')[-1][:-4] in f: try: uda = f.split ('_')[0] + fda = datetime.datetime.fromtimestamp (int (uda)).strftime ('%Y/%m/%d %H:%M:%S') + flist.append (fda + '\t#\t' + f) except: - tkMessageBox.showinfo ("Wrong dump file", "No appropriate dump file in ./dumps folder") + tkMessageBox.showinfo ("Wrong dump file", "Wrong file name " + f + " in ./dumps folder") return "" - fda = datetime.datetime.fromtimestamp (int (uda)).strftime ('%Y/%m/%d %H:%M:%S') - flist.append (fda + '\t#\t' + f) if len (flist) == 0: tkMessageBox.showinfo ("Wrong dump file", "No appropriate dump file in ./dumps folder") return ""