On Dec 12, 12:59 pm, r wrote:
> yes, but your script will need to know hoe to handle this.the
> following will open a file who's name was passed to the script
>
> if len(sys.argv) > 1:
> try:
> open_file(fname=sys.argv[1])
> except:
> pass
ah, ok. now what if I want the
Hi!
Im new at python and I just want to know if (and how) it is possible
to send parameters to a program.
what I mean is that when we start python I can call a file that should
be run like this: python myfile.py
can I send additional parameters along with it? like::: python
myfile.py myVar1 myVa