Open
Description
Description of the new feature
We launch a python CLI from windows terminal. As a result of certain CLI actions, we want the windows terminal to set certain environment variables as soon as the python CLI command finishes. I understand that this is impossible when launching python from CMD. However, maybe there is some trick to allow it when launching python from Windows Terminal.
We have discarded the option of wrapping the python CLI in a bat or cmd as then we end up with the dreaded 'Terminate (Y/N)' prompt on Ctrl-C.
My hope is that Windows Terminal has some kind of scripting support such that the python subprocess can add an envvar in its parent shell via some kind of API call.
Any other ideas very welcome!
Proposed technical implementation details
No response