Does anyone know why I can't send arguments when executing a script? I have installed python 3.8.1, Windows 10 x64. I have an environment variable (the folder where my scripts are). I can execute the scripts like this:
nameScript.py
and it works but if I put
nameScript.py 1
and in this script I use that '1', sys.argv[1]
give an error: Index out of bounds
.
If I execute the script like:
python D/path_to_script/nameScript.py 1
it works.