symerio / pgeocode

Postal code geocoding and distance calculation
https://pgeocode.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
238 stars 58 forks source link

Change default folder to ~/.cache/pgeocode/ #51

Closed garybake closed 1 year ago

garybake commented 3 years ago

This is mostly for unix-like environments. By having the folder starting with a dot will make the folder hidden. I dislike having a load of folders in my home directory and this hides it away.

mborus commented 2 years ago

Maybe it's not a good idea to store this data in the user profile at all. The behavior to save something in a user directory is somewhat a surprise. It would make much sense to store it a in "site-packages" subfolder.

This way, it would work correctly with python virtual environments.

rth commented 1 year ago

Thanks for the suggestion and PR! Changed the default location to ~/.cache/pgeocode which is a more standard location. That's for instance what pip does for downloaded wheels.

It would make much sense to store it a in "site-packages" subfolder.

I don't think it's a very common practice to manually put downloaded files into site-packages so I'll keep it as is for now.