I want to create an exe from a python script that uses command line arguments (argv)
From what I’ve seen py2exe doesn’t support command-line-arguments
What can I do?
EDIT: I was using a GUI2Exe tool, so I just missed the Console flag, but the accepted answer is perfectly correct
I believe the line you want to use looks like this.
I tested this with 2 files:
hello.py
And setup.py
I ran these commands:
And then in the dist folder, I ran this:
Result: