def load_pickled_umbrella_data(self):
     LOG.info("Trying to load pickled data from file: %s",
              self.pickled_data_file)
     if FileUtils.does_file_exist(self.pickled_data_file):
         self.data = PickleUtils.load(self.pickled_data_file)
         return True
     else:
         LOG.info("Pickled umbrella data file not found under path: %s",
                  self.pickled_data_file)
         return False
示例#2
0
    def _check_input_files(self, input_files: List[str], project_basedir: str):
        LOG.info(
            f"Checking provided input files. Command: {self.cmd_type}, Files: {input_files}"
        )
        resolved_files = [
            FileUtils.join_path(project_basedir, f) for f in input_files
        ]
        not_found_files = []

        # Sanity check
        for f in resolved_files:
            exists = FileUtils.does_file_exist(f)
            if not exists:
                not_found_files.append(f)
        if len(not_found_files) > 0:
            raise ValueError(
                f"The following files could not be found: {not_found_files}")
        LOG.info(
            f"Listing resolved input files. Command: {self.cmd_type}, Files: {resolved_files}"
        )
        return resolved_files