make_absolutizing_url_mutator¶
- wwt_data_formats.folder.make_absolutizing_url_mutator(baseurl)[source]¶
Return a function that makes relative URLs absolute.
- Parameters:
- baseurlstring, absolute URL
The absolute URL with which to combine relative URLs
- Returns:
- A mutator function suitable for use with
wwt_data_formats.abcs.UrlContainer.mutate_urls()
.
- A mutator function suitable for use with
Notes
This function is designed for usage with
wwt_data_formats.abcs.UrlContainer.mutate_urls()
. It returns a mutator function that can be passed to this method. The mutator will take relative URLs and make them absolute by combining them with the baseurl argument. Input URLs that are already absolute will be unchanged.