-
Notifications
You must be signed in to change notification settings - Fork 8
Avoid changing global config #21
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
Conversation
@74th please take a look. |
We want the changes to persist for the entire shell session. Wouldn't the context manager undo them at the end of the function? Edit: Nevermind, it just undoes the |
@anki-code Thanks for finding and PR-ing. Please bump the patch version and add a release note to README.md |
Thank you for review @con-f-use !
Done.
It returns UPDATE_OS_ENVIRON to the previous state. It's the right pattern. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for PR!
I will release this patch now.
Hey!
Instead of changing global config (it's bad pattern) I suggest to wrap your changes into the context manager.