def repository_has_cookiecutter_json(repo_directory):
 repo_directory_exists = os.path.isdir(repo_directory)
 repo_config_exists = os.path.isfile(os.path.join(repo_directory, u'cookiecutter.json'))
 return (repo_directory_exists and repo_config_exists)

def repository_has_cookiecutter_json ( repo_directory ) : repo_directory_exists = os . path . isdir ( repo_directory ) repo_config_exists = os . path . isfile ( os . path . join ( repo_directory , u'cookiecutter.json' ) ) return ( repo_directory_exists and repo_config_exists )
determine if repo_directory contains a cookiecutter .