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