Hello NG,
I have a GUI (written in wxPython) that calls some external exe files. Some of them requires that I add to the PATH variable 1 directory. Basically, the exe are located in:
/MyApp/Solvers/FirstExe /MyApp/Solvers/SecondExe
And so on, while the dll needed by these exe are located in:
/MyApp/MyDll
These exe files do not work if I don't set the PATH variable also to that adress. I know I can do it by hand (and also my users can), but I wonder if there is a way to do it in Python...
Thank you for all suggestions/pointers.
Andrea.
Check out the 'Path' value under this registry key:
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
You can import _winreg to edit it as you like. I think it's a string... just append your path(s) to them.
rbt -- http://mail.python.org/mailman/listinfo/python-list