Unanswered
Hi Everyone,
Additional Arguments To The Script Execution, Is It Possible? How Can It Be Done?
So At The Moment When My Script Is Being Executed The
SuccessfulKoala55 No, that's not what I mean.
Take a look at the process in the machine:/home/ubuntu/.trains/venvs-builds/3.6/bin/python -u path/to/script/my_script.py
That's how the process starts. Therefore, when I try to get sys.argv
all I get is path/to/script/my_script.py
.
I'm talking about allowing to have arguments that are not being injected to the argparse. So it will look like:/home/ubuntu/.trains/venvs-builds/3.6/bin/python -u path/to/script/my_script.py --num_proc 2
160 Views
0
Answers
4 years ago
one year ago