[GRASS-git] [OSGeo/grass-addons] 6f7667: r.in.usgs: Use system user cache dir (#630)

Vaclav Petras noreply at github.com
Wed Nov 24 13:16:25 PST 2021

  Branch: refs/heads/grass7
  Home:   https://github.com/OSGeo/grass-addons
  Commit: 6f7667e735134b7974e7a2bafde60130efcf98dd
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2021-11-24 (Wed, 24 Nov 2021)

  Changed paths:
    M src/raster/r.in.usgs/r.in.usgs.html
    M src/raster/r.in.usgs/r.in.usgs.py

  Log Message:
  r.in.usgs: Use system user cache dir (#630)

Instead of a required output/work/cache directory option, use a subdirectory of the user cache dir according to the standards of each operating system.

* Linux/Freedesktop uses .cache and we use grass as the application name, then a version string (from g.version), and then name of the module.
* MacOS is the same, but in Library/Caches.
* For Windows, we use APPDATA as in the startup script with Cache as an additional subdirectory.

Increases copyright year in code.

More information about the grass-commit mailing list