[GRASS-git] [OSGeo/grass] 44ea59: grass.script: Provide env parameter in the g.messa...

Vaclav Petras noreply at github.com
Sat Mar 2 19:10:54 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 44ea5979147f3a2dcb8f1dcfd161d21e6a5b1962
      https://github.com/OSGeo/grass/commit/44ea5979147f3a2dcb8f1dcfd161d21e6a5b1962
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2024-03-03 (Sun, 03 Mar 2024)

  Changed paths:
    M python/grass/script/core.py

  Log Message:
  -----------
  grass.script: Provide env parameter in the g.message API (#3439)

This makes the _message_, _verbose_ and other functions consistent with other wrappers around _run_command_ family calls. While not needed for multiple-mapset situations and parallelization, it is necessary when calls with messages are used without global environment being set and only a custom (local) environment is available which is the case in grass.script.setup (with #3438).

The PR aims at providing the interface, not updating all use cases (it will be applied for grass.script.setup in #3438).

This does not have any test since the current API does not allow for writing these test. This will be tested indirectly in the future (e.g. by #3438).

Additionally, it fixes documentation for couple other function where the parameter documentation was misleading or wrong.



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list