def guess_source_dir():
    for guess in ('doc', 'docs'):
        if not op.isdir(guess):
            continue
        for root, dirnames, filenames in os.walk(guess):
            if 'conf.py' in filenames:
                return root
    return None
dataset/ETHPy150Open cournape/Bento/bento/commands/sphinx_command.py/guess_source_dir/original