Guest User

Untitled

a guest
Nov 3rd, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.59 KB | None | 0 0
  1. dataFiles = []
  2.  
  3. #sample data files
  4. sampleDir = r'.\res'
  5. for root, dirs, files in os.walk('res'):
  6.     sampleList = []
  7.     if files:
  8.         for filename in files:
  9.             sampleList.append(os.path.join(root, filename))
  10.             if sampleList:
  11.                 dataFiles.append((root, sampleList))
  12.  
  13.  
  14. sys.argv.append('py2exe')              
  15. setup(
  16.      
  17.      
  18.      
  19.       windows=[{'script': "test.py"}],
  20.       name="Pacman",
  21.       data_files = dataFiles,
  22.  
  23.       options = {'py2exe': {
  24.        "bundle_files": 1, # This tells py2exe to bundle everything
  25.        
  26.       }},
  27. )
Advertisement
Add Comment
Please, Sign In to add comment