{"action":"created","issue":{"url":"https://api.github.com/repos/gitpython-developers/GitPython/issues/393","repository_url":"https://api.github.com/repos/gitpython-developers/GitPython","labels_url":"https://api.github.com/repos/gitpython-developers/GitPython/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/gitpython-developers/GitPython/issues/393/comments","events_url":"https://api.github.com/repos/gitpython-developers/GitPython/issues/393/events","html_url":"https://github.com/gitpython-developers/GitPython/issues/393","id":138258127,"number":393,"title":"It is not possible to set GIT_PYTHON_TRACE option from python script","user":{"login":"Dmitriusan","id":1825803,"avatar_url":"https://avatars.githubusercontent.com/u/1825803?v=3","gravatar_id":"","url":"https://api.github.com/users/Dmitriusan","html_url":"https://github.com/Dmitriusan","followers_url":"https://api.github.com/users/Dmitriusan/followers","following_url":"https://api.github.com/users/Dmitriusan/following{/other_user}","gists_url":"https://api.github.com/users/Dmitriusan/gists{/gist_id}","starred_url":"https://api.github.com/users/Dmitriusan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dmitriusan/subscriptions","organizations_url":"https://api.github.com/users/Dmitriusan/orgs","repos_url":"https://api.github.com/users/Dmitriusan/repos","events_url":"https://api.github.com/users/Dmitriusan/events{/privacy}","received_events_url":"https://api.github.com/users/Dmitriusan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gitpython-developers/GitPython/labels/waiting%20for%20feedback","name":"waiting for feedback","color":"ff8c00"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-03T18:25:56Z","updated_at":"2016-03-06T11:22:00Z","closed_at":null,"body":"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\r\n\r\nWhy 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). \r\n\r\nBTW, other devs seem also to have a lot of confusion about that:\r\n- http://academia.codeover.org/questions/34964465/gitpython-debug-logs-not-available\r\n- https://github.com/gitpython-developers/GitPython/issues/222 \r\n\r\nThanks in advance"},"comment":{"url":"https://api.github.com/repos/gitpython-developers/GitPython/issues/comments/192876465","html_url":"https://github.com/gitpython-developers/GitPython/issues/393#issuecomment-192876465","issue_url":"https://api.github.com/repos/gitpython-developers/GitPython/issues/393","id":192876465,"user":{"login":"Byron","id":63622,"avatar_url":"https://avatars.githubusercontent.com/u/63622?v=3","gravatar_id":"","url":"https://api.github.com/users/Byron","html_url":"https://github.com/Byron","followers_url":"https://api.github.com/users/Byron/followers","following_url":"https://api.github.com/users/Byron/following{/other_user}","gists_url":"https://api.github.com/users/Byron/gists{/gist_id}","starred_url":"https://api.github.com/users/Byron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Byron/subscriptions","organizations_url":"https://api.github.com/users/Byron/orgs","repos_url":"https://api.github.com/users/Byron/repos","events_url":"https://api.github.com/users/Byron/events{/privacy}","received_events_url":"https://api.github.com/users/Byron/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T11:22:00Z","updated_at":"2016-03-06T11:22:00Z","body":"The only way to setting or adjusting the verbosity level at runtime is the one stated [in this comment](https://github.com/gitpython-developers/GitPython/issues/222#issuecomment-68597780).\r\n\r\nAs 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.\r\n\r\nIf you found my note acceptable, please close the issue.\r\nThanks"}}