Re: [Tutor] pass arg to list

2019-07-18 Thread Steven D'Aprano
On Thu, Jul 18, 2019 at 11:34:09AM -0700, Anirudh Tamsekar wrote: > My script below is blowing index out of range after adding the args. > version = sys.argv[1] > Traceback (most recent call last): > File "/Users/atamsekar/Projects/PulseSO/trunk/swrelease/samplexls.py", > line 5, in > ver

Re: [Tutor] pass arg to list

2019-07-18 Thread Alan Gauld via Tutor
On 18/07/2019 19:34, Anirudh Tamsekar wrote: > # User Args > > version = sys.argv[1] > build = sys.argv[2] > > add_file = (... > ) > Traceback (most recent call last): > > File "/Users/atamsekar/Projects/PulseSO/trunk/swrelease/samplexls.py", > line 5, in > > version = sys.argv[1] > >

[Tutor] pass arg to list

2019-07-18 Thread Anirudh Tamsekar
Hi, I'm trying to pass arguments to list. This script needs to generate csv files. I want to pass the version and build number to the script and it should be passed to the list. My script below is blowing index out of range after adding the args. However, if I hardcode the version, it works fin