from distutils.core import setup
import py2exe

setup(console=['process.py'])

from distutils.core import setup
import py2exe, sys

sys.argv.append('py2exe')

setup(
    options = {'py2exe': {'bundle_files': 1, 'compressed': True}},
    console = [{'script': "process.py"}],
    zipfile = None,
)

Add options to generate single executable file
Add options to generate single executable file
  from distutils.core import setup
- import py2exe
+ import py2exe, sys
  
- setup(console=['process.py'])
+ sys.argv.append('py2exe')
  
+ setup(
+     options = {'py2exe': {'bundle_files': 1, 'compressed': True}},
+     console = [{'script': "process.py"}],
+     zipfile = None,
+ )
+ 
Add options to generate single executable file
## Code Before:
from distutils.core import setup
import py2exe

setup(console=['process.py'])

## Instruction:
Add options to generate single executable file
## Code After:
from distutils.core import setup
import py2exe, sys

sys.argv.append('py2exe')

setup(
    options = {'py2exe': {'bundle_files': 1, 'compressed': True}},
    console = [{'script': "process.py"}],
    zipfile = None,
)
