

@property
def sphinx_config(self):
    "Configuration options for sphinx.\n\n        This is a lazily-generated property giving the options from the\n        sphinx configuration file.  It's generated by actualy executing\n        the config file, so don't do anything silly in there.\n        "
    if (self._sphinx_config is None):
        conf_path = self.settings.conf_path
        conf_path = self.site.sitepath.child_folder(conf_path)
        conf_file = conf_path.child('conf.py')
        self._sphinx_config = {
            '__file__': conf_file,
        }
        curdir = os.getcwd()
        os.chdir(conf_path.path)
        try:
            execfile(conf_file, self._sphinx_config)
        finally:
            os.chdir(curdir)
    return self._sphinx_config

dataset/ETHPy150Open hyde/hyde/hyde/ext/plugins/sphinx.py SphinxPlugin.sphinx_config/original