---------- Forwarded message ----------
From: Dan Xia <dan.xia@gmail.com>
Date: Wed, Sep 26, 2012 at 11:25 PM
Subject: How to correct TCL_LIBRARY and TK_LIBRARY with py2exe
To: py2exe-users@lists.sourceforge.net

The original problem in:

I almost solved it by myself, anyhow still a problem left:
The dist create by py2exe, tcl8.5 and tk8.5 libraries resides in a tcl folder, I have to make a windows batch wrapper:
set TCL_LIBRARY=.\tcl\tcl8.5\
set TK_LIBRARY=.\tcl\tk8.5\
.exe %1
or if I directly run the slideshow.exe generated by py2exe:
Traceback (most recent call last):
File "slideshow.py", line 45, in <module>
File "Tkinter.pyc", line 1685, in __init__
.TclError: Can't find a usable init.tcl in the following directories:
    C:/Users/d2xia/ccm_wa/utils/tfps/lib/tcl8.5 C:/Users/d2xia/ccm_wa/utils/tfps/lib/tcl8.5 ...
Any py2exe settings to fix this?

Xia Dan  /  夏 丹
UMTS: +86 186 1111 4183
GSM: +86 139 1151 2002