From 9d3d817f532f3b70b8053015b4f7fd74fa38bc12 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Thu, 9 May 2019 11:21:08 +0200 Subject: [PATCH] pour aide generation mdp --- generator/generator_XML.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 -- 2.39.2