You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As documentation states, this option has to be set via environment. But it's impossible to set env variable from inside the program via os.environ. That simply would not work because it would be applied only to subprocesses and not to the program environment itself: http://stackoverflow.com/questions/1506010/how-to-use-export-with-python-on-linux
Why do I need that? For example, in order to implement -v option that is consistent (user should not have to set env variable in addition to specifying -v when launching my program in debug mode).
BTW, other devs seem also to have a lot of confusion about that:
The only way to setting or adjusting the verbosity level at runtime is the one stated in this comment.
As GitPython is in maintenance mode, features are only added by PR's, and you are welcome to submit one in case you come up with an interface or utility method that makes this clearer.
If you found my note acceptable, please close the issue.
Thanks
As documentation states, this option has to be set via environment. But it's impossible to set env variable from inside the program via os.environ. That simply would not work because it would be applied only to subprocesses and not to the program environment itself: http://stackoverflow.com/questions/1506010/how-to-use-export-with-python-on-linux
Why do I need that? For example, in order to implement -v option that is consistent (user should not have to set env variable in addition to specifying -v when launching my program in debug mode).
BTW, other devs seem also to have a lot of confusion about that:
Thanks in advance
The text was updated successfully, but these errors were encountered: