On Sunday, January 6, 2013 8:03:43 AM UTC-8, marc.assin wrote: > I wonder how I could specify a parameter on the command line from > within the interpreter. Guido wrote some advice a while back - http://www.artima.com/weblogs/viewpost.jsp?thread=4829
Import your module and call its main.
The other way is to execute in another process:
from subprocess import check_call
import sys
check_call([sys.executable, 'myscript.py', 'arg1', 'arg2'])
--
http://mail.python.org/mailman/listinfo/python-list
