"Jeff Groves" <[EMAIL PROTECTED]> wrote: > >I'm writing a launcher that should do the following: > >1. Activate a .bat file to set environmental variables. >2. Start 3 programs, using said environmental variables as arguments. > >However, I can't get the environmental variables to stick because all >of Pythons' system start/open functions split off into their own little >subshells, therefore the .bat file doesn't affect the main shell. > >How can I use the .bat file to set environmental vars from Python?
One very real possibility is to parse your .bat files by hand, and make the changes to your os.environ. Your subprocesses inherit that. .BAT files are easy to parse, especially if they're just a bunch of 'set' statements. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list