from __future__ import (absolute_import, division, print_function) import os def update_config(conf): # This works when installed and when in buildroot. conf['pre_existing_data_dir'] = os.path.join(os.path.dirname(__file__), '../../../../share/cartopy')