Executing a python script with arguments from a python script

olaufr at gmail.com olaufr at gmail.com
Mon Dec 12 18:08:41 EST 2005


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.




More information about the Python-list mailing list