9q fix#9
This commit is contained in:
parent
7049729416
commit
d5cbb6aa8a
@ -142,7 +142,7 @@ class DDT():
|
||||
# Load XML
|
||||
if not self.decu.ecufname.startswith(mod_globals.ddtroot):
|
||||
tmp_f_name = self.decu.ecufname.split('/')[-1]
|
||||
self.decu.ecufname = mod_globals.ddtroot+'/ecus/'+tmp_f_name
|
||||
self.decu.ecufname = 'ecus/'+tmp_f_name
|
||||
|
||||
if not mod_db_manager.file_in_ddt(self.decu.ecufname):
|
||||
print "No such file: ", self.decu.ecufname
|
||||
|
@ -304,8 +304,8 @@ class DDTECU():
|
||||
|
||||
fname = fname.strip()
|
||||
if len(fname):
|
||||
self.ecufname = mod_globals.ddtroot+'/ecus/'+fname
|
||||
if os.path.isfile(self.ecufname):
|
||||
self.ecufname = 'ecus/'+fname
|
||||
if mod_db_manager.file_in_ddt(self.ecufname):
|
||||
break
|
||||
else:
|
||||
print "No such file :",self.ecufname
|
||||
|
@ -126,9 +126,13 @@ def loadECUlist():
|
||||
eculist[Address]["targets"][href]['Projects'] = pjcl
|
||||
ail = []
|
||||
ais = target.findall("ns0:AutoIdents", ns)
|
||||
if len(ais)==0:
|
||||
ais = target.findall("AutoIdents")
|
||||
if len(ais):
|
||||
for ai in ais:
|
||||
AutoIdents = ai.findall("ns0:AutoIdent", ns)
|
||||
if len(AutoIdents)==0:
|
||||
AutoIdents = ai.findall("AutoIdent")
|
||||
if len(AutoIdents):
|
||||
for AutoIdent in AutoIdents:
|
||||
air = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user