geovista.config
#
Provide geovista
resource configuration.
The resources
dictionary defines the options used to configure the
location of various geovista
resources.
The following resources
dictionary keys are defined:
cache_dir
- The directory used to storegeovista.cache
assets. The default configuration is based on the XDG Base Directory Specification i.e.,${XDG_CACHE_HOME}/geovista
. Otherwise, the default is thegeovista
directory underplatformdirs.user_cache_dir()
.
The resources
dictionary cache_dir
may be overridden at a package
system or environment level by creating a siteconfig.py
file in the
geovista
package installation root directory and defining an update_config
function that updates the resources
dictionary. For example:
def update_config(resources: dict[str, str]) -> None:
resources["cache_dir"] = "/var/cache/geovista"
The user may override both the default and package level configuration by defining an
update_config
function within a geovistaconfig
user site-packages
module.
Notes#
Added in version 0.1.0.
Attributes#
Resources configuration dictionary. |