Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dataFiles = []
- #sample data files
- sampleDir = r'.\res'
- for root, dirs, files in os.walk('res'):
- sampleList = []
- if files:
- for filename in files:
- sampleList.append(os.path.join(root, filename))
- if sampleList:
- dataFiles.append((root, sampleList))
- sys.argv.append('py2exe')
- setup(
- windows=[{'script': "test.py"}],
- name="Pacman",
- data_files = dataFiles,
- options = {'py2exe': {
- "bundle_files": 1, # This tells py2exe to bundle everything
- }},
- )
Advertisement
Add Comment
Please, Sign In to add comment