How to pass a parameter

L

Lad

I have a sript that downloads a webpage. According to the picture on
this webpage I need to pass a parameter to this , running script a few
lines later.
How can I do that?
Thanks for help
Lad
 
N

Norbert

Lad said:
I have a sript that downloads a webpage. According to the picture on
this webpage I need to pass a parameter to this , running script a few
lines later.
How can I do that?
Thanks for help
Lad

Depends on the environment you use and the script itself. Assuming
windows it could go like this:

[path_to_python]\python yourscript.py param1 param2

maybe the script takes named parameters, then it looks like this :

[path_to_python]\python yourscript.py param1=value1 param2=value2

the path_to_python is not required if python is on your path.

'python' is not required in the statemenst if your system is configured
to execute .py files with python anyway.

Hope that helps, if it doesn't you should supply details about your
system.

Norbert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top