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

Change the default cache directory #96

Open
MosGeo opened this issue Jul 13, 2023 · 1 comment
Open

Change the default cache directory #96

MosGeo opened this issue Jul 13, 2023 · 1 comment

Comments

@MosGeo
Copy link

MosGeo commented Jul 13, 2023

Currently jgo uses ~/.jgo as the cache directory. It would be great if this folder location can be modified by the user through Python or through environmental variable.

Rational

By letting the user define the folder location, portablity can be improved. For example, the cache directory can be moved easily with with the project to a new computer and it would just work without redownloading the required files or manually copying the .jgo folder to the user directory.

Workaround

Write some code in python at the start of the application to copy .jgo folder if it is not found in the user directory. It is not ideal as it might conflict with exsiting folder. Also, it feels like a hack.

@jayvdb
Copy link
Contributor

jayvdb commented Jan 10, 2024

I believe it can be configured using env var JGO_CACHE_DIR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants