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

Add environment variable OPENVAR_PLUGIN #23

Merged
merged 3 commits into from
Mar 13, 2024

Conversation

FedericaBrando
Copy link
Member

This PR implements the use of an environment variable in Openvariant that stores where the plugin should be search and create.

by default the path is:

$HOME/.local/share/openvariant/

Given issue

Please feel free to add any comment, suggestion, improvement that can be added to finalize this PR.

- set `OPENVAR_PLUGIN`to `$HOME/.local/share/openvariant`
- check if environment variable are not in the env otherwise adds them
- check if path extists already, otherwise create directory
- update requiremente with appdir package
-  update plugin builder to look for external plugin in `OPENVAR_PLUGIN`
-  update create plugin function to use env_var by default
- Add `loadEnvironmentVariables()` so plugin tests do not fail.
@FedericaBrando FedericaBrando added the enhancement New feature or request label Mar 12, 2024
@FedericaBrando FedericaBrando self-assigned this Mar 12, 2024
@FedericaBrando FedericaBrando linked an issue Mar 12, 2024 that may be closed by this pull request
@FedericaBrando
Copy link
Member Author

tested implementation with cgi-pipeline with success.

@FedericaBrando FedericaBrando merged commit 6b3796b into develop Mar 13, 2024
1 check passed
@FedericaBrando FedericaBrando deleted the dev/21-add-env-variable-for-plugins branch March 13, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Openvariant | Add path to external plugin folder in annotation
2 participants