Advertisement
Guest User

setup.py for py2exe example one

a guest
Apr 22nd, 2013
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.84 KB | None | 0 0
  1. from distutils.core import setup
  2. import py2exe, glob, sys
  3.  
  4. #http://www.py2exe.org/
  5. #Run from dos command prompt "python setup.py" as we add py2exe below.
  6. sys.argv.append("py2exe")
  7.  
  8. #Add code for bundling up image and icon files
  9. #http://www.py2exe.org/index.cgi/data_files
  10.  
  11.  
  12. setup(
  13.         #console=['mchs.pyw'],       #Concole Application
  14.         windows=[
  15.             {
  16.                 "script" : 'mchs.pyw',
  17.                 "icon_resources": [(1,"Weatherford.ico")]
  18.             }
  19.         ],       #Windows Application
  20.         data_files=[(".", [
  21.             "weatherford.ico"])
  22.             ,
  23.             ('images', glob.glob("images/*.gif")),
  24.             ]
  25.         #options = {'py2exe': {
  26.         #    'optimize': 2,
  27.         #    }}
  28.     )
  29.  
  30. #http://www.py2exe.org/index.cgi/ListOfOptions
  31. #http://www.py2exe.org/index.cgi/data_files
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement