---------- 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:
http://stackoverflow.com/questions/12598279/how-to-correct-tcl-library-and-tk-library-with-py2exe/12604878#12604878 

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\
slideshow
.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__
_tkinter
.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
http://weibo.com/ptthisdan