[Tutor] making independent program?
Bill Burns
billburns at pennswoods.net
Mon Sep 4 18:16:48 CEST 2006
<snip>
> I've tried to follow the py2exe wiki instructions on how to trim this
> out, http://www.py2exe.org/index.cgi/TkInter, but I seem to be doing
> something wrong. Here's my setup.py---
>
> from distutils.core import setup
> import py2exe
>
> excludes = ["pywin", "pywin.debugger", "pywin.debugger.dbgcon",
> "pywin.dialogs", "pywin.dialogs.list",
> "Tkconstants","Tkinter","tcl",
> "_imagingtk", "PIL._imagingtk", "ImageTk", "PIL.ImageTk",
> "FixTk"]
>
> setup(windows=['ob_portrait.pyw'])
Try changing your setup line to this:
setup(windows=[{'script':'ob_portrait.pyw','excludes':excludes}])
HTH
Bill
More information about the Tutor
mailing list