From: pascale.noyret Date: Thu, 9 May 2019 09:21:08 +0000 (+0200) Subject: pour aide generation mdp X-Git-Tag: avantMenage~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9d3d817f532f3b70b8053015b4f7fd74fa38bc12;p=tools%2Feficas.git pour aide generation mdp --- diff --git a/generator/generator_XML.py b/generator/generator_XML.py index a4ff1221..8f2dc05b 100644 --- a/generator/generator_XML.py +++ b/generator/generator_XML.py @@ -78,7 +78,11 @@ class XMLGenerator(PythonGenerator): 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') @@ -97,7 +101,9 @@ class XMLGenerator(PythonGenerator): 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