how to use execfile with input parameters

Gabriel Genellina gagsl-py2 at
Tue Sep 9 19:00:02 CEST 2008

En Mon, 08 Sep 2008 08:08:33 -0300, Shi, Shaozhong <S.Shi at>  

> 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  
But probably you want to call a *function* in a module.

Gabriel Genellina

More information about the Python-list mailing list