stting environment variables in powershell by calling python script that prints $env:myVar=myvalue
- by leeg
I have some legacy python scripts that manage my shell environment for all the programs and plugins I am running on Linux (bash) and windows (cmd.exe). I want to port this to powershell.
How do I set environment variables in powershell by calling python script that prints $env:myVar=myvalue
and causes my environment variable to persist in the…