def store_resource(project, resource_path, filename):
    fi = find_resource(project, resource_path)
    if fi is None:
        raise RuntimeError('Resource not found for project "%s": %s' %
                           (project, resource_path))

    fo = open(filename, 'wb')
    fo.write(fi.read())
    fo.close()

    fi.close()


#### EOF ######################################################################
Store the content of a resource, given by the name of the project
dataset/ETHPy150Open enthought/traits/traits/util/resource.py/store_resource