I use python to create my project settings setup, but I need help. I tried reading but can't find info to do this:
$python myfile.py var1 var2 var3
In my Python file I need to use all vars that are input.
I use python to create my project settings setup, but I need help. I tried reading but can't find info to do this:
$python myfile.py var1 var2 var3
In my Python file I need to use all vars that are input.
import sys
sys.argv[1:]
will give you a list of arguments (not including the name of the python file)