Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

setup.py for py2exe example 2

By: a guest on Apr 22nd, 2013  |  syntax: Python  |  size: 0.42 KB  |  hits: 40  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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