I’m testing some python code that parses command line input. Is there a way to pass this input in through IDLE? Currently I’m saving in the IDLE editor and running from a command prompt.
I’m running Windows.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It doesn’t seem like IDLE provides a way to do this through the GUI, but you could do something like:
You can also set
sys.argvmanually, like:(Credit http://wayneandlayne.com/2009/04/14/using-command-line-arguments-in-python-in-idle/)