Question about the article "py2exe compiler" in Python Cookbook by Alexander Semenov

Thomas Heller theller at python.net
Fri Sep 22 12:38:32 EDT 2006


Daniel Mark schrieb:
> Hello all:
> 
> I follow the following tutorial
> 
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/108598
> Description:
> script for making executables with py2exe
> ##############
> from distutils.core import setup
> import sys, os, py2exe
> 
> name = sys.argv[1]
> sys.argv[1] = 'py2exe'
> sys.path.append(os.path.dirname(os.path.abspath(name)))
> 
> setup(name=name[:-3], scripts=[name])
> ##############
> 
> However, I can not get the expected results.

Someone should correct this recipe.  In newer py2exe-versions,
you have to use 'console=[name]' in the above script.

Thomas




More information about the Python-list mailing list