'set_application will be called from Sphinx to set app and other instance variables
:param sphinx.application.Sphinx app: Sphinx application object'

def set_application(self, app):

    self.app = app
    self.config = app.config
    self.env = app.env
    self.warn = app.warn
    self.info = app.info
