fix for wrong file name in dumps folder
This commit is contained in:
parent
ca9bdb6a5d
commit
d444fae8fc
@ -491,11 +491,11 @@ class DDTScreen (tk.Frame):
|
|||||||
if self.decu.ecufname.split ('/')[-1][:-4] in f:
|
if self.decu.ecufname.split ('/')[-1][:-4] in f:
|
||||||
try:
|
try:
|
||||||
uda = f.split ('_')[0]
|
uda = f.split ('_')[0]
|
||||||
|
fda = datetime.datetime.fromtimestamp (int (uda)).strftime ('%Y/%m/%d %H:%M:%S')
|
||||||
|
flist.append (fda + '\t#\t' + f)
|
||||||
except:
|
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 ""
|
return ""
|
||||||
fda = datetime.datetime.fromtimestamp (int (uda)).strftime ('%Y/%m/%d %H:%M:%S')
|
|
||||||
flist.append (fda + '\t#\t' + f)
|
|
||||||
if len (flist) == 0:
|
if len (flist) == 0:
|
||||||
tkMessageBox.showinfo ("Wrong dump file", "No appropriate dump file in ./dumps folder")
|
tkMessageBox.showinfo ("Wrong dump file", "No appropriate dump file in ./dumps folder")
|
||||||
return ""
|
return ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user