-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Feature Request: Change the location of the local cache to the users home directory. #149
Comments
@draperjames it's trivial to tell tldextract where to save the cache, actually! two options:
|
sorry for the noise, fat fingered some things |
oh right this is covered in the docs - so we won't need to update docs in relation to this issue https://github.com/john-kurkowski/tldextract#note-about-caching |
Lastly: hey, it's understandable that you'd want the defaults, with no arguments, to behave that way, plenty of things default to |
Related: #9 |
Arguably came up again: #196 |
Running tldextract 2.2.0 on Python 3.6.5 on Windows 10.
Currently when I run:
tldextract.extract("https://example.com")
It runs just fine but I get the following error:
unable to cache TLDs in file C:\Program Files\Miniconda3\lib\site-packages\tldextract\.tld_set: [Errno 13] Permission denied: 'C:\\Program Files\\Miniconda3\\lib\\site-packages\\tldextract\\.tld_set'
There are multiple ways to approach this but I believe the best is writing the cache somewhere in the users home directory. Similar to the way IPython and Matplotlib do it. That way the user wouldn't have to change the permissions of the specific site package.
The text was updated successfully, but these errors were encountered: