import py2exe, sys, os
sys.argv.append('py2exe')
setup(options={'py2exe': {'bundle_files': 1}}, windows=[{'script':
    'YourScript.py'}], zipfile=None)
Process to convert simple Python script into Windows executable