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
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,
Oops, Forgot to include the list!
Forwarded Message
Subject:Re: Setting Command Line Arguments in IDLE
Date: Sun, 26 May 2019 09:03:36 +0100
From: Alan Gauld
To: Richard Damon
On 26/05/2019 02:55, Richard Damon wrote:
> I am working on a python script t
> On 26/05/2019 02:55, Richard Damon wrote:
>> 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?
>>
>
> There used to be a dialog for that b
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
Hi there,
I was wondering if anyone had some tips that might direct me to answers
to this problem:
I have a program which one downloads to your computer, and you install.
Then, I want to add into this program a share button.
This share button would send a tweet to your twitter saying, "I am
w
On 26-5-2019 16:59, nathan tech wrote:
> Hi there,
>
> I was wondering if anyone had some tips that might direct me to answers
> to this problem:
>
> I have a program which one downloads to your computer, and you install.
>
> Then, I want to add into this program a share button.
>
> This sha