code: def _get_requirement_attr(self, attr, path):
          
          for req_file in self.requirements:
              if path.strip("/") == req_file.path.strip("/"):
                  return getattr(req_file, attr)
          return getattr(self, attr)
docs: Gets the attribute for a given requirement file in path
          :param attr: string, attribute
          :param path: string, path
          :return: The attribute for the requirement, or the global default