[GRASS-git] [OSGeo/grass] 4ecb43: grass.script: Get GISBASE automatically in get_com...
Vaclav Petras
noreply at github.com
Sun May 5 18:17:15 PDT 2024
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 4ecb43eb489bea23459703602e006e2727d46568
https://github.com/OSGeo/grass/commit/4ecb43eb489bea23459703602e006e2727d46568
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2024-05-05 (Sun, 05 May 2024)
Changed paths:
M python/grass/script/core.py
A python/grass/script/tests/conftest.py
A python/grass/script/tests/grass_script_core_get_commands.py
Log Message:
-----------
grass.script: Get GISBASE automatically in get_commands (#3683)
* grass.script: Get GISBASE automatically in get_commands
The _grass.script.get_commands_ function requires GISBASE (more specifically, path to binary executables and scripts). The need for GISBASE prevents its use before a session (more specifically the runtime part of it) is created. This changes the function to get the GISBASE automatically when not set. It also adds the standard env parameter other functions have (which is useful mainly for tests).
* Add mock for tests
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