This commit is contained in:
shrlnm 2019-10-23 08:57:22 +03:00
parent f39a83466d
commit 7049729416
3 changed files with 6 additions and 6 deletions

View File

@ -1242,8 +1242,8 @@ class DDTLauncher():
#b_xml.grid(row=8, column=2, **optsGrid)
allxmllist = []
for l in sorted(mod_db_manager.get_file_list_from_ddt('^ecus/*')):
allxmllist.append( l[5:] )
for l in sorted(mod_db_manager.get_file_list_from_ddt('ecus/*')):
allxmllist.append( os.path.basename(l) )
l2_xml = tk.Label(self.ecudlg, text='ALL XML:', background="#d9d9d9")
l2_xml.grid(row=9, column=0, **optsGrid_e)
a_xml = ttk.Combobox(self.ecudlg, width=30)

View File

@ -285,7 +285,7 @@ class DDTECU():
eculist = mod_ddt_utils.loadECUlist()
mod_ddt_utils.searchddtroot()
#mod_ddt_utils.searchddtroot()
if len(mod_globals.opt_ddtxml)>0:
fname = mod_globals.opt_ddtxml
@ -393,7 +393,7 @@ class DDTECU():
if xmlname.upper().endswith('.XML'):
xmlname = xmlname[:-4]
if len(dumpname)==0:
if len(dumpname)==0 or not os.path.exists(dumpname):
flist = []
for root, dirs, files in os.walk("./dumps"):

View File

@ -125,10 +125,10 @@ def loadECUlist():
pjcl = []
eculist[Address]["targets"][href]['Projects'] = pjcl
ail = []
ais = target.findall("AutoIdents")
ais = target.findall("ns0:AutoIdents", ns)
if len(ais):
for ai in ais:
AutoIdents = ai.findall("AutoIdent")
AutoIdents = ai.findall("ns0:AutoIdent", ns)
if len(AutoIdents):
for AutoIdent in AutoIdents:
air = {}