pgeocode icon indicating copy to clipboard operation
pgeocode copied to clipboard

Change default folder to .pgeocode_data

Open garybake opened this issue 4 years ago • 1 comments

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.

garybake avatar May 09 '21 20:05 garybake

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.

mborus avatar Dec 09 '21 12:12 mborus

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.

rth avatar Dec 13 '22 21:12 rth