.exe files

v.wehren v.wehren at home.nl
Sun Feb 24 15:01:57 EST 2002


Search starship Python for the PY2EXE distribution  and download/install it.

If you in addition use the following script A. Semenov that imports
py2exe.py, compiling your code becomes even more painless:

from distutils.core import setup
import sys, os, py2exe

name = sys.argv[1]
sys.argv[1] = 'py2exe'
sys.path.append(os.path.dirname(os.path.abspath(name)))

setup(name=name[:-3], scripts=[name])




Regards
Davinci

"Stephen Smith" <ssmith619 at hotmail.com> schrieb im Newsbeitrag
news:jpae8.66140$X64.23604369 at news1.rdc2.pa.home.com...
> I'm new to Python, and have created a number of small programs that users
> might find interesting, althought they aren't really geeky and the people
> that use them would probably not have the Python IDLE or anything even
> related to Python installed.  Is there anyway to turn a .py file into a
.exe
> file that can be executable on Windows?  It doesn't call from any other
> modules, it's completely stand alone.  Thank you for any information!
>
>





More information about the Python-list mailing list