def is_copy_only_path(path, context):
 try:
  for dont_render in context[u'cookiecutter'][u'_copy_without_render']:
   if fnmatch.fnmatch(path, dont_render):
    return True
 except KeyError:
  return False
 return False

def is_copy_only_path ( path , context ) : try : for dont_render in context [ u'cookiecutter' ] [ u'_copy_without_render' ] : if fnmatch . fnmatch ( path , dont_render ) : return True except KeyError : return False return False
check whether the given path should only be copied as opposed to being rendered .