def createAlgsList(self):
     self.preloadedAlgs = []
     folder = GPFUtils.gpfDescriptionPath(GPFUtils.beamKey())
     for descriptionFile in os.listdir(folder):
         if descriptionFile.endswith("txt"):
             try:
                 alg = BEAMAlgorithm(os.path.join(folder, descriptionFile))
                 if alg.name.strip() != "":
                     self.preloadedAlgs.append(alg)
                 else:
                     ProcessingLog.addToLog(
                         ProcessingLog.LOG_ERROR,
                         "Could not open BEAM algorithm: " +
                         descriptionFile)
             except Exception, e:
                 ProcessingLog.addToLog(
                     ProcessingLog.LOG_ERROR,
                     "Could not open BEAM algorithm: " + descriptionFile)
 def createAlgsList(self, key, gpfAlgorithm):
     self.preloadedAlgs = []
     folder = GPFUtils.gpfDescriptionPath(key)
     for descriptionFile in os.listdir(folder):
         if descriptionFile.endswith("txt"):
             try:
                 alg = gpfAlgorithm(os.path.join(folder, descriptionFile))
                 if alg.name.strip() != "":
                     alg.provider = self
                     self.preloadedAlgs.append(alg)
                 else:
                     ProcessingLog.addToLog(
                         ProcessingLog.LOG_ERROR, "Could not open " + key +
                         " SNAP generic algorithm: " + descriptionFile)
             except Exception, e:
                 ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, str(e))
                 ProcessingLog.addToLog(
                     ProcessingLog.LOG_ERROR, "Could not open " + key +
                     " generic algorithm: " + descriptionFile)