[EMAIL PROTECTED] wrote:
> Hi,
> 
> I need to call a python script, with command line arguments (it is an
> autonomous script with a __main__), from within another python script.
> Can I use exec() or execfile() for this? How to pass the arguments?
> 
> Thanks,
> 
> Olivier.
> 

Obligatory "ugh."

Are you sure you want to do that? Just make the part you want to execute into a 
function and then import it as a module. You will thank me later.

To reluctantly answer your question: see os.system.

But don't see os.system. Use python like python.

James
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to