I am having trouble getting the second argument I am sending to a Python script? I am unsure of how to fix it and changing the second argument to a value or putting a %1 in front of the arguments has not worked. Here is my current code does anyone know what the error might be?
Batch File Code:
`@echo off`
set /p UserInputPath=Enter the location of your development unit?
set /p ScriptPath =Enter script path?
python part2.py %UserInputPath% %ScriptPath%
Python File Code:
unitPath = sys.argv[1]
scriptLocation = sys.argv[2]
scriptLocation = sys.argv[2] IndexError: list index out of range