Re: Activating Batch Files from Python

2006-04-21 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, "Jeff Groves" <[EMAIL PROTECTED]> wrote: >>How about sourcing it from a shell, then using that same shell instance >>to run the programs? > >How would I do that? As I've said, I haven't found a Python command >that lets you send multiple commands to the same shell

Re: Activating Batch Files from Python

2006-04-20 Thread Atanas Banov
Jeff Groves wrote: > How would I do that? As I've said, I haven't found a Python command > that lets you send multiple commands to the same shell yet. If I could, > my problem would be solved. any reason why you cannot create a temp .bat, consisting of: setvar.bat prog1.exe prog2.exe and then

Re: Activating Batch Files from Python

2006-04-20 Thread Tim Roberts
"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

Re: Activating Batch Files from Python

2006-04-20 Thread EShames
On 4/18/2006 11:39 PM, Jeff Groves 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 becaus

Re: Activating Batch Files from Python

2006-04-19 Thread Ben C
On 2006-04-19, Jeff Groves <[EMAIL PROTECTED]> wrote: >>How about sourcing it from a shell, then using that same shell instance >>to run the programs? > > How would I do that? As I've said, I haven't found a Python command > that lets you send multiple commands to the same shell yet. If I could, >

Re: Activating Batch Files from Python

2006-04-19 Thread Ben C
On 2006-04-19, 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 st

Re: Activating Batch Files from Python

2006-04-19 Thread Jeff Groves
>How about sourcing it from a shell, then using that same shell instance >to run the programs? How would I do that? As I've said, I haven't found a Python command that lets you send multiple commands to the same shell yet. If I could, my problem would be solved. -- http://mail.python.org/mailman

Re: Activating Batch Files from Python

2006-04-19 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, "Jeff Groves" <[EMAIL PROTECTED]> wrote: >How can I use the .bat file to set environmental vars from Python? How about sourcing it from a shell, then using that same shell instance to run the programs? -- http://mail.python.org/mailman/listinfo/python-list

Re: Activating Batch Files from Python

2006-04-19 Thread Serge Orlov
Jeff Groves 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' syste

Activating Batch Files from Python

2006-04-18 Thread Jeff Groves
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 of