Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from distutils.core import setup
- import py2exe, glob, sys
- #http://www.py2exe.org/
- #Run from dos command prompt "python setup.py" as we add py2exe below.
- sys.argv.append("py2exe")
- #Add code for bundling up image and icon files
- #http://www.py2exe.org/index.cgi/data_files
- setup(
- #console=['mchs.pyw'], #Concole Application
- windows=[
- {
- "script" : 'mchs.pyw',
- "icon_resources": [(1,"Weatherford.ico")]
- }
- ], #Windows Application
- data_files=[(".", [
- "weatherford.ico"])
- ,
- ('images', glob.glob("images/*.gif")),
- ]
- #options = {'py2exe': {
- # 'optimize': 2,
- # }}
- )
- #http://www.py2exe.org/index.cgi/ListOfOptions
- #http://www.py2exe.org/index.cgi/data_files
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement