SyntaxFix
Write A Post
Hire A Developer
Questions
sys.argv[0] is not the first argument but the filename of the python program you are currently executing. I think you want sys.argv[1]
sys.argv[0]
sys.argv[1]