Export variables on win32 like in Unix

This script comes from Activestate. It exports a variable permanently on win32 – without needing to reboot the system. Note: pywin32 must be installed to run the script.

Use it like this:

And here comes the script. Save it as win32export.py and use it from other scripts or from the command line.

Leave a Reply