'Find a ``conf.py`` file in the project checkout'

def conf_file(self, version=LATEST):

    if self.conf_py_file:
        conf_path = os.path.join(self.checkout_path(version), self.conf_py_file)
        if os.path.exists(conf_path):
            log.info('Inserting    conf.py    file    path    from    model')
            return conf_path
        else:
            log.warning("Conf    file    specified    on    model    doesn't    exist")
    files = self.find('conf.py', version)
    if (not files):
        files = self.full_find('conf.py', version)
    if (len(files) == 1):
        return files[0]
    for filename in files:
        if (filename.find('doc', 70) != (-1)):
            return filename
    raise ProjectImportError(u'Conf    File    Missing.    Please    make    sure    you    have    a    conf.py    in    your    project.')
