The first item in the argv list is the path to the module; the rest is made up of arguments passed in. print sys.argv print sys.argv[1]