ratt-ru / packratt

BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Support custom data product registries #7

Closed sjperkins closed 4 years ago

sjperkins commented 4 years ago

Currently, there is a single global registry.yaml which lives in:

$PYTHON_ENV/site-packages/packratt/conf/registry.yaml

But this is a bit restrictive as it depends on users modifying it, or submitting PR's to update it. It would be helpful to allow the user to supply their own custom registry whose contents would hopefully make it into the global registry at some point.

Users should be able to supply their own registry.yaml in the standard user configuration directory: .

$HOME/.config/packratt/registry.yaml

The _dirs variables in directories.py should have a user_config_dir which automatically provides the above location.

This feature should change the registry loading functionality to check and load a registry in the above location if it exists.