[GRASS-git] [OSGeo/grass] 166e54: grass.script: Remove collection GUI scripts from g...

Vaclav Petras noreply at github.com
Thu Jun 26 10:09:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 166e543bf284d7427fe818d5c78997d6d3b5ec07
      https://github.com/OSGeo/grass/commit/166e543bf284d7427fe818d5c78997d6d3b5ec07
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2025-06-26 (Thu, 26 Jun 2025)

  Changed paths:
    M python/grass/script/core.py
    R python/grass/script/tests/grass_script_core_get_commands.py
    A python/grass/script/tests/grass_script_core_get_commands_test.py

  Log Message:
  -----------
  grass.script: Remove collection GUI scripts from get_commands (#5971)

Completely removes GUI scripts from get_commands because they are too special. All the tools get_commands gives you should be on PATH and behave the same. We may consider moving these special tools to scripts.

The block for the GUI scripts didn't work because the path to GUI scripts was wrong. Also, it didn't add the tools in the same way as for the other directories on Windows.

The original get_commands modified the system PATH environment variable in the global environment as a side effect unrelated to what it is actually doing. This is not needed to generate the return value and it is not expected outcome from running the get_commands function. A tests now tests that this not reintroduced.

Renames the test to xxx_test to enable automatic testing.

Fixes the Windows Python script part of the test (extension includes a dot).



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