def _loadAlgorithms(self):
     folder = ModelerUtils.modelsFolder()
     for descriptionFile in os.listdir(folder):
         if descriptionFile.endswith("model"):
             try:
                 alg = ModelerAlgorithm()
                 fullpath = os.path.join(ModelerUtils.modelsFolder(),descriptionFile)
                 alg.openModel(fullpath)
                 if alg.name.strip() != "":
                     alg.provider = self
                     self.algs.append(alg)
             except WrongModelException,e:
                 SextanteLog.addToLog(SextanteLog.LOG_ERROR,"Could not load model " + descriptionFile + "\n" + e.msg)
 def _loadAlgorithms(self):
     folder = ModelerUtils.modelsFolder()
     for descriptionFile in os.listdir(folder):
         if descriptionFile.endswith("model"):
             try:
                 alg = ModelerAlgorithm()
                 fullpath = os.path.join(ModelerUtils.modelsFolder(),descriptionFile)
                 alg.openModel(fullpath)
                 if alg.name.strip() != "":
                     alg.provider = self
                     self.algs.append(alg)
             except WrongModelException,e:
                 SextanteLog.addToLog(SextanteLog.LOG_ERROR,"Could not load model " + descriptionFile + "\n" + e.msg)
 def _loadAlgorithms(self):
     folder = ModelerUtils.modelsFolder()
     self.loadFromFolder(folder)
     folder = os.path.join(os.path.dirname(__file__), "models")
     self.loadFromFolder(folder)
 def modelsFolder(self):
     return ModelerUtils.modelsFolder()
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
     SextanteConfig.addSetting(
         Setting(self.getDescription(), ModelerUtils.MODELS_FOLDER,
                 "Models folder", ModelerUtils.modelsFolder()))
 def _loadAlgorithms(self):
     folder = ModelerUtils.modelsFolder()
     self.loadFromFolder(folder)
     folder = os.path.join(os.path.dirname(__file__), "models")
     self.loadFromFolder(folder)
 def modelsFolder(self):
     return ModelerUtils.modelsFolder()
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
     SextanteConfig.addSetting(Setting(self.getDescription(), ModelerUtils.MODELS_FOLDER, "Models folder", ModelerUtils.modelsFolder()))