'Returns array with the "include" directives expanded out by
concatenating the contents of the included file to the block.
:param list block:
:rtype: list'

def _get_included_directives(self, block):

    result = copy.deepcopy(block)
    for directive in block:
        if _is_include_directive(directive):
            included_files = glob.glob(self.abs_path(directive[1]))
            for incl in included_files:
                try:
                    result.extend(self.parsed[incl])
                except KeyError:
                    pass
    return result
