ssec / polar2grid

Tools for reading, remapping, and writing satellite instrument data.
http://www.ssec.wisc.edu/software/polar2grid/
GNU General Public License v3.0
72 stars 34 forks source link

Package configuration directory not used from Python installation #712

Closed djhoese closed 2 months ago

djhoese commented 2 months ago

User informed me of an issue that results from the configuration directory (etc) not being properly added to Satpy's list of configuration paths. The primary code that's the problem is here:

https://github.com/ssec/polar2grid/blob/6024d1d24acf037f553b9fb66e35fd573ab59a84/polar2grid/utils/config.py#L33-L37

The final "polar2grid" in that directory is not accurate for conda/pure-python environments. The three cases that need to be handled are:

  1. developer installation ("editable")
  2. tarball installation
  3. python (conda or regular) environment