setup(console=['hello.py'])
I believe the line you want to use looks like this.
I tested this with 2 files:
hello.py
import sys
for arg in sys.argv:
print arg
print "Hello World!"
And setup.py
from distutils.core import setup
import py2exe
setup(console=['hello.py'])
I ran these commands:
python setup.py py2exe
And then in the dist folder, I ran this:
hello.exe foo bar
Result:
hello.exe
foo
bar
Hello World!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…