tags:

views:

28

answers:

1
c:\python26\setup.py py2exe

Trying to run py2exe and when I get to command prompt I run the line above. However as opposed to converting my file it try's to open it. What am I doing wrong?

+1  A: 

You must create your own setup.py and then run it with py2exe:

c:\my_python_scripts>python setup.py py2exe

In your setup.py you import distutils, py2exe and show names of your scripts to compile. There is template for it. Then I usually create .bat file which compiles my scripts.

Have you read py2exe tutorial?

Michał Niklas