- self.parametre = {'filename' : filename}
- self.parametre['filetype'] = filetype
- self.parametre['encodage'] = encodage
- self.parametre['mineff'] = 3
- self.parametre['syscoding'] = sys.getdefaultencoding()
+ if parametres is None :
+ self.parametres = DoConf(self.parent.ConfigPath['matrix']).getoptions('matrix')
+ self.parametres['pathout'] = PathOut(filename, 'matrix').mkdirout()
+ self.parametres['originalpath'] = filename
+ self.parametres['filetype'] = filetype
+ self.parametres['encodage'] = encodage
+ #self.parametre['pathout'] = os.path.dirname(os.path.abspath(filename))
+ self.parametres['mineff'] = 3
+ self.parametres['syscoding'] = sys.getdefaultencoding()
+ self.parametres['type'] = 'matrix'
+ self.parametres['matrix_name'] = os.path.basename(filename)
+ self.parametres['uuid'] = str(uuid4())
+ self.parametres['shelves'] = os.path.join(self.parametres['pathout'], 'shelve')
+ self.parametres['ira'] = os.path.join(self.parametres['pathout'], 'Matrix.ira')
+ else :
+ self.parametres = parametres
+ self.pathout = PathOut(filename = filename, dirout = self.parametres['pathout'])
+ self.csvtable = None