Hi,
I'm very new to Python and have been using it for very simple automation scripts so far. Until now, I have been running my scripts from within Pythonwin and ArcGIS software with great success. However, I'd like to start running from the command line now, but Python will not read in my parameters.
For example, my script called script1.py is only these three lines:
import sys
params = sys.argv[0:]
print params
This is what I type at the command line:
script1.py param1 param2 param3
This is the result:
['C:\\scripts\\script1.py']
Why will it not read in my other parameters? I have PY files set to run with Python.exe. Is there something else I have to set up on my machine? Any help would be great.
thanks,
Keith
I'm very new to Python and have been using it for very simple automation scripts so far. Until now, I have been running my scripts from within Pythonwin and ArcGIS software with great success. However, I'd like to start running from the command line now, but Python will not read in my parameters.
For example, my script called script1.py is only these three lines:
import sys
params = sys.argv[0:]
print params
This is what I type at the command line:
script1.py param1 param2 param3
This is the result:
['C:\\scripts\\script1.py']
Why will it not read in my other parameters? I have PY files set to run with Python.exe. Is there something else I have to set up on my machine? Any help would be great.
thanks,
Keith