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