So I have a code that prints out the sys.argv when the program is ran. How can I parse

$ python ./ install *

to show ["./","install","*"]
Instead of ["./","install",#other files in directory]?

Wildcards are interpreted by the shell before your program gets a chance to touch them. If you want them passed as literals, then escape them so that they're not interpreted as wildcards:

$ python ./ install \*