Re: Passing arguments to a command line from a python script

2007-03-19 Thread Luis M. González
On Mar 19, 11:52 pm, Steven Bethard <[EMAIL PROTECTED]> wrote: > Luis M. González wrote: > > On Mar 19, 10:49 pm, "zacherates" <[EMAIL PROTECTED]> wrote: > >> This implies that `os.system("setuppy py2exe")` should do what you > >> want. > > > It works! > > Thank you, this is just what I wanted. > >

Re: Passing arguments to a command line from a python script

2007-03-19 Thread Steven Bethard
Luis M. González wrote: > On Mar 19, 10:49 pm, "zacherates" <[EMAIL PROTECTED]> wrote: >> This implies that `os.system("setuppy py2exe")` should do what you >> want. > > It works! > Thank you, this is just what I wanted. You'll get better error checking if instead you do:: >>> import subpro

Re: Passing arguments to a command line from a python script

2007-03-19 Thread Luis M. González
On Mar 19, 10:49 pm, "zacherates" <[EMAIL PROTECTED]> wrote: > On Mar 19, 9:42 pm, "Luis M. González" <[EMAIL PROTECTED]> wrote: > > > > > On Mar 19, 9:25 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > > wrote: > > > > En Mon, 19 Mar 2007 20:46:56 -0300, Luis M. González <[EMAIL PROTECTED]> > > > es

Re: Passing arguments to a command line from a python script

2007-03-19 Thread zacherates
On Mar 19, 9:42 pm, "Luis M. González" <[EMAIL PROTECTED]> wrote: > On Mar 19, 9:25 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: > > > > > En Mon, 19 Mar 2007 20:46:56 -0300, Luis M. González <[EMAIL PROTECTED]> > > escribió: > > > > What I want now is execute the script I just created. > >

Re: Passing arguments to a command line from a python script

2007-03-19 Thread Luis M. González
On Mar 19, 9:25 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 19 Mar 2007 20:46:56 -0300, Luis M. González <[EMAIL PROTECTED]> > escribió: > > > What I want now is execute the script I just created. > > As far as I know, the only way to execute the script is from a command > > line a

Re: Passing arguments to a command line from a python script

2007-03-19 Thread Gabriel Genellina
En Mon, 19 Mar 2007 20:46:56 -0300, Luis M. González <[EMAIL PROTECTED]> escribió: > What I want now is execute the script I just created. > As far as I know, the only way to execute the script is from a command > line and typing "setup.py py2exe". A few ways: - os.system("commandline"). Simple

Passing arguments to a command line from a python script

2007-03-19 Thread Luis M. González
Please forgive me if what I'm asking is non sense... I created a little program to authomate the creation of the "setup.py" script for py2exe. It simply prompts for the main executable script name and then creates setup.py, as follows: # this is "makesetup.py" nombre = raw_input('File name?: ')