def generate_configuration(directory):
 conf = osp.join(get_module_source_path('spyder.utils.help'), 'conf.py')
 layout = osp.join(osp.join(CONFDIR_PATH, 'templates'), 'layout.html')
 os.makedirs(osp.join(directory, 'templates'))
 os.makedirs(osp.join(directory, 'static'))
 shutil.copy(conf, directory)
 shutil.copy(layout, osp.join(directory, 'templates'))
 open(osp.join(directory, '__init__.py'), 'w').write('')
 open(osp.join(directory, 'static', 'empty'), 'w').write('')

def generate_configuration ( directory ) : conf = osp . join ( get_module_source_path ( 'spyder.utils.help' ) , 'conf.py' ) layout = osp . join ( osp . join ( CONFDIR_PATH , 'templates' ) , 'layout.html' ) os . makedirs ( osp . join ( directory , 'templates' ) ) os . makedirs ( osp . join ( directory , 'static' ) ) shutil . copy ( conf , directory ) shutil . copy ( layout , osp . join ( directory , 'templates' ) ) open ( osp . join ( directory , '__init__.py' ) , 'w' ) . write ( '' ) open ( osp . join ( directory , 'static' , 'empty' ) , 'w' ) . write ( '' )
generates a sphinx configuration in directory .