Add System Path?!?
rbt
rbt at athop1.ath.vt.edu
Tue Apr 5 16:51:09 EDT 2005
More information about the Python-list mailing list
Tue Apr 5 16:51:09 EDT 2005
- Previous message (by thread): Propagating poorly chosen idioms
- Next message (by thread): Add System Path?!?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
andrea_gavana at tin.it wrote: > 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
- Previous message (by thread): Propagating poorly chosen idioms
- Next message (by thread): Add System Path?!?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list