Re: Calling python script in dos and passing arguments

2013-04-16 Thread Tim Roberts
Chris Rebert wrote: > >2. Glob/wildcard ("*") expansion is done by the shell, but >subprocess.Popen does not use the shell by default (for good reason!). This is only true in Linux. In Windows, the wildcard characters are passed to the program, so each app must do its own glob expansion. -- Tim

Re: Calling python script in dos and passing arguments

2013-04-16 Thread Michael Torrie
On 04/16/2013 08:14 AM, PEnergy wrote: > Greetings, > > I am trying to write a python script that, when called from the DOS > prompt, will call another python script and pass it input variables. > My current code will open the other python script but doesn't seem to > pass it any values: > > impo

Re: Calling python script in dos and passing arguments

2013-04-16 Thread Alister
On Tue, 16 Apr 2013 12:10:09 -0700, Chris Rebert wrote: > On Tue, Apr 16, 2013 at 7:14 AM, PEnergy wrote: >> Greetings, >> >> I am trying to write a python script that, when called from the DOS >> prompt, will call another python script and pass it input variables. >> My current code will open t

Re: Calling python script in dos and passing arguments

2013-04-16 Thread Chris Rebert
On Tue, Apr 16, 2013 at 7:14 AM, PEnergy wrote: > Greetings, > > I am trying to write a python script that, when called from the DOS prompt, > will call another python script and pass it input variables. My current code > will open the other python script but doesn't seem to pass it any values:

Calling python script in dos and passing arguments

2013-04-16 Thread PEnergy
Greetings, I am trying to write a python script that, when called from the DOS prompt, will call another python script and pass it input variables. My current code will open the other python script but doesn't seem to pass it any values: import os,sys,subprocess subprocess.Popen(['python.exe',