how to use execfile with input parameters

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Sep 9 13:00:02 EDT 2008


En Mon, 08 Sep 2008 08:08:33 -0300, Shi, Shaozhong <S.Shi at kingston.ac.uk>  
escribió:

> I have a Python script expecting 11 or 12 input parameters.  How do I
> use execfile to execute the Python script in my new Python script?  How
> do I pass in the input parameters?

You might use the subprocess module to run the script with all its  
parameters.
But probably you want to call a *function* in a module.

-- 
Gabriel Genellina




More information about the Python-list mailing list