python-cartopy/siteconfig.py
2021-09-21 20:00:46 -04:00

7 lines
201 B
Python

from pathlib import Path
def update_config(conf):
# This works when installed and when in buildroot.
conf['pre_existing_data_dir'] = str(
Path(__file__).parents[4] / 'share/cartopy')