def _get_paths(options):
opts = options<EOL>docroot = path(opts.get('<STR_LIT>', '<STR_LIT>'))<EOL>if not docroot.exists():<EOL><INDENT>raise BuildFailure("<STR_LIT>"<EOL>% docroot)<EOL><DEDENT>builddir = docroot / opts.get("<STR_LIT>", "<STR_LIT>")<EOL>srcdir = docroot / opts.get("<STR_LIT>", "<STR_LIT>")<EOL>if not srcdir.exists():<EOL><INDENT>raise BuildFailure("<STR_LIT>"<EOL>% srcdir)<EOL><DEDENT>confdir = path(opts.get('<STR_LIT>', srcdir))<EOL>outdir = opts.get('<STR_LIT>', '<STR_LIT>')<EOL>if outdir:<EOL><INDENT>outdir = path(outdir)<EOL><DEDENT>else:<EOL><INDENT>outdir = builddir / opts.get('<STR_LIT>', '<STR_LIT:html>')<EOL><DEDENT>doctrees = opts.get('<STR_LIT>', '<STR_LIT>')<EOL>if not doctrees:<EOL><INDENT>doctrees = builddir / "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>doctrees = path(doctrees)<EOL><DEDENT>return Bunch(locals())<EOL>
Retrieves paths needed to run sphinx.

    Returns a Bundle with the required values filled in.