I\'m currently teaching myself Python and was just wondering (In reference to my example below) in simplified terms what the sys.argv[1]
represents. Is it simpl
To pass arguments to your python script while running a script via command line
python create_thumbnail.py test1.jpg test2.jpg
here, script name - create_thumbnail.py, argument 1 - test1.jpg, argument 2 - test2.jpg
With in the create_thumbnail.py script i use
sys.argv[1:]
which give me the list of arguments i passed in command line as ['test1.jpg', 'test2.jpg']