how to pass parameter to a python script when running it in the interactive shell?

2007-12-05 Thread wang frank
Hi, I am debugging a python script which takes a set of paramters. In the regular shell, I type: myscript.py --cl --cs 5 --ce 6 --bw 7 --set 1 However I want to debug the code in the interactive python shell, I do not know how to run it. I know that execfile(myscript.py) will run the

Re: how to pass parameter to a python script when running it in the interactive shell?

2007-12-05 Thread David Tweet
This should work: python -i myscript.py --cl --cs 5 --ce 6 --bw 7 --set 1 On Dec 5, 2007 6:31 PM, wang frank [EMAIL PROTECTED] wrote: Hi, I am debugging a python script which takes a set of paramters. In the regular shell, I type: myscript.py --cl --cs 5 --ce 6 --bw 7 --set 1