#filePyxb = fn[:fn.rfind(".")] + '.py'
fileBase = os.path.basename(fileXML)
fileBase = fileBase[:fileBase.rfind(".")] + '.py'
- filePyxb = '/tmp/' + fileBase
+ filePyxb = '/tmp/example_' + fileBase
#print (filePyxb)
#fileDico='/tmp/toto.xml'
#print (self.texteXML)
f.close()
f = open( str(filePyxb), 'w')
+ self.textePourAide='txt=""'+'\n'+self.textePourAide
+ self.textePourAide=self.textePourAide+'print (txt)'+'\n'
f.write(str(self.textePourAide))
f.close()
nomUtil = obj.nom
self.dictNbNomObj[obj.nom] = 1
self.textePourAide += nomUtil + " = vimmpCase." + obj.getNomDsXML() + "\n"
- #self.textePourAide += "print '"+ nomUtil+ " =' , " + str(nomUtil) + "\n"
- self.textePourAide +='txt += "' + nomUtil + '" + " = " +str( ' + nomUtil + ') ' + "\n"
+ self.textePourAide +='txt += "' + nomUtil + '" + " = " +str( ' + nomUtil + ')+"\\n"'+ "\n"