Debugging with IDLE

dave white dwhite2 at seas.upenn.edu
Sat Apr 15 01:26:35 CEST 2000


Hello,

I'd like to debug a python script using IDLE.  The way my script is
written, it requires command like arguments when run -- e.g.  I run my
script on the command line by typing :

>python script.py input.txt

and 'input.txt' goes into sys.argv[1].  

Is there a way to provide a command line value to IDLE so that when I
run script.py, it will be evaluated with 'input.txt' in sys.argv[1]?

thanks,
david



More information about the Python-list mailing list