SHARE
TWEET

setup.py for py2exe example 2

a guest Apr 22nd, 2013 52 Never
  1. from distutils.core import setup
  2. import py2exe, sys, glob
  3.  
  4. #http://www.py2exe.org/
  5. #Run from dos command prompt
  6. #!python setup.py py2exe
  7.  
  8. sys.argv.append("py2exe")
  9.  
  10. data_files = glob.glob("*.ico")
  11. data_files.extend(glob.glob("*.gif"))
  12.  
  13. setup(
  14.         console=['slaveserial.py'],
  15.         data_files=[(".", data_files)]
  16.     )
  17.  
  18. #http://www.py2exe.org/index.cgi/ListOfOptions
  19. #http://www.py2exe.org/index.cgi/data_files
RAW Paste Data
Top