Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grass.script: Pass environment to message functions #4630

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

wenzeslaus
Copy link
Member

While the message functions (fatal, warning, message, info, debug, verbose, percent) have env parameter, grass.script was not consistently passing the env parameter to these functions. This fixes all the clear cases in functions which themselves have env (but does not touch any which don't have it where the fix needs to be more complex).

These functions can now be called and produce these messages even for non-global sessions.

While the message functions (fatal, warning, message, info, debug, verbose, percent) have env parameter, grass.script was not consistently passing the env parameter to these functions. This fixes all the clear cases in functions which themselves have env (but does not touch any which don't have it where the fix needs to be more complex).

These functions can now be called and produce these messages even for non-global sessions.
@github-actions github-actions bot added Python Related code is in Python libraries labels Nov 1, 2024
@wenzeslaus wenzeslaus merged commit cb3d12b into OSGeo:main Nov 1, 2024
26 checks passed
@wenzeslaus wenzeslaus deleted the env-for-messages branch November 1, 2024 21:23
@github-actions github-actions bot added this to the 8.5.0 milestone Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libraries Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants