'Provides access to plugin-specific files from ``/content`` directory of the package
:param path: path relative to package\'s ``/content``
:param mode: Python file access mode
:type  path: str
:type  mode: str
:returns: An open file object
:rtype: file'

def open_content(self, path, mode='r'):

    _check_plugin(self.__class__)
    root = os.path.split(self.__class__._path)[0]
    while ((len(root) > 1) and (not os.path.exists(os.path.join(root, 'content')))):
        root = os.path.split(root)[0]
    if (len(root) <= 1):
        raise Exception('content    directory    not    found')
    return open(os.path.join(root, 'content', path), mode)
