@listify(wrapper=nameddict)<EOL><INDENT>def path_context(self, path):<DEDENT>
prefix = os.path.commonprefix([path, self._path])<EOL>relative_path = path[len(prefix) :]<EOL>relative_path = relative_path.strip(os.sep)<EOL>attrs = self.CONTEXT_ATTRS<EOL>for i, elt in enumerate(relative_path.split(os.sep)):<EOL><INDENT>yield attrs[i], elt<EOL><DEDENT>yield '<STR_LIT:path>', path<EOL>
Build of dictionary of fields extracted from
        the given path