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

It is not possible to set GIT_PYTHON_TRACE option from python script #393

Closed
Dmitriusan opened this issue Mar 3, 2016 · 2 comments
Closed

Comments

@Dmitriusan
Copy link

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

@Byron
Copy link
Member

Byron commented Mar 6, 2016

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

@Dmitriusan
Copy link
Author

@Byron ,
thank you for reply. For now, close the issue and will try to use the way you pointed to, and will see how it goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants