By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,353 Members | 1,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,353 IT Pros & Developers. It's quick & easy.

How to pass a parameter

P: n/a
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
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Lad wrote:
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

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.