- fout = self.tableau.pathout['%s.csv' % mod].replace(u'*','')
- with open(fout, 'w') as f :
- f.write('\n'.join(['\t'.join(line) for line in newtabs[mod]]).encode(self.parent.syscoding))
- print 'done!'
\ No newline at end of file
+ tab = Tableau(self.ira, os.path.join(self.tableau.pathout['%s.csv' % mod]).replace('*',''))
+ if not os.path.exists(tab.pathout.dirout) :
+ os.mkdir(tab.pathout.dirout)
+ tab.linecontent = newtabs[mod]
+ tab.make_content_simple()
+ tab.parametres['matrix'] = tab.parametres['uuid']
+ self.ira.tree.OnItemAppend(tab.parametres, select = False)