I have to convert python script to windows executable.
I have installed python 2.6 in my system.
I can see a folder in c drive naming python26 which contain all the files.
I have created one script and kept it in C:\pythonscript
inside this folder there are two files
Setup.py and oldlogs.py (this file need coversion)
setup.py code is
from distutils.core import setup
import py2exe
setup(console=['oldlogs.py'])
Now please let me know how should i proceed so that i can convert oldlogs.py to exe.
解决方案
Or use PyInstaller as an alternative to py2exe. Here is a good starting point. PyInstaller let's you also create executables for linux and mac...