Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package configuration directory not used from Python installation #712

Closed
djhoese opened this issue Sep 21, 2024 · 0 comments · Fixed by #713
Closed

Package configuration directory not used from Python installation #712

djhoese opened this issue Sep 21, 2024 · 0 comments · Fixed by #713
Assignees
Labels

Comments

@djhoese
Copy link
Member

djhoese commented Sep 21, 2024

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:

def get_polar2grid_etc():
p2g_pkg_location = impr.files("polar2grid")
if _is_editable_installation():
return str(p2g_pkg_location / "etc")
return p2g_pkg_location / "etc" / "polar2grid"

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant