passing arguments to exec

Wojtek Walczak gminick at bzt.bzt
Mon Aug 25 09:36:40 EDT 2008


On Mon, 25 Aug 2008 06:31:53 -0700 (PDT), Alexandru Mosoi wrote:
> i want to execute a python script using exec open('script.py'). how do
> I pass arguments?

Take a look at subprocess module. It comes with a set of examples.

-- 
Regards,
Wojtek Walczak,
http://tosh.pl/gminick/



More information about the Python-list mailing list