I’ve been trying to research this but haven’t come to a solid conclusion. How does one set(create) and environment variable using python?
I found the “set” command at first, but then I learned that is only for the current running shell. Then I found the “setx” command, and read that it was released in sp2 of winxp as an extended tool set, so not sure if that works for win7 or if a user would even know how to get it. Then I saw something about PowerShell, but again trying to keep the install as simple as possible for the artists.
The reason I want to know this is, I want to have a dialog box where the user can select a directory to install and have it set the variable behind the scenes so they don’t have to do it.
Thanks in advance