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

$ python ./arch.py install *

to show ["./arch.py","install","*"]
Instead of ["./arch.py","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 ./arch.py install \*
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.