Re: [Tutor] Setting Command Line Arguments in IDLE

2019-05-26 Thread Martin A. Brown
Hello Richard, In addition to the answers you have received from Alex and Alan, I'll add a bit longer of an answer mostly around how to separate the command-line invocation / argument handling part of your program from the pure-Python logic. While I, also, cannot help terribly with the direc

Re: [Tutor] Setting Command Line Arguments in IDLE

2019-05-26 Thread Alex Kleider
On 2019-05-25 18:55, Richard Damon wrote: Is there any way to define the working directory for the program, or will it always be the directory the script is in (it will be typically run using the PATH, so not the same directory as the script)? import os cwd = os.getcwd() os.chdir(path) Sorry,

[Tutor] Setting Command Line Arguments in IDLE

2019-05-26 Thread Richard Damon
I am working on a python script that will be provided arguments when run from the system command line. Is there any place in IDLE to provide equivalent arguments for testing while developing in IDLE? Is there any way to define the working directory for the program, or will it always be the directo