pybliometrics-dev / pybliometrics

Python-based API-Wrapper to access Scopus
https://pybliometrics.readthedocs.io/en/stable/
Other
407 stars 127 forks source link

Location of config and cache files #270

Closed raffaem closed 1 year ago

raffaem commented 1 year ago

The XDG Base Directory specification provides for:

Can we move config.ini in $HOME/.config/pybliometrics, and the cache in $HOME/.cache/pybliometrics, and still read also from the old directory ($HOME/.pybliometrics) for backwards compatibility?

Michael-E-Rose commented 1 year ago

I'm sorry, I totally overlooked this issue. You are totally right, the XDG schemas should be the default paths. I changed it such that the old locations can still be used - this includes the very old location ~/.scopus/.

The configuration file is henceforth going to be named ~/.config/pybliometrics.cfg.