code: def ancestors(self):
          '''
          Get list of ancestors until app config's directory_base is reached.
  
          :returns: list of ancestors starting from nearest.
          :rtype: list of Node objects
          '''
          ancestors = []
          parent = self.parent
          while parent:
              ancestors.append(parent)
              parent = parent.parent
          return ancestorf ancestors(self):
          '''
          Get list of ancestors until app config's directory_base is reached.
  
          :returns: list of ancestors starting from nearest.
          :rtype: list of Node objects
          '''
          ancestors = []
          parent = self.parent
          while parent:
              ancestors.append(parent)
              parent = parent.parent
          return ancestors
docs: Get list of ancestors until app config's directory_base is reached.
  
          :returns: list of ancestors starting from nearest.
          :rtype: list of Node objects