Re: ::tcl_library needed to be set for each interpreter???
- From: impm001@xxxxxxxxx
- Date: Thu, 15 May 2008 05:15:46 -0700 (PDT)
On May 15, 7:29 am, Ron Fox <f...@xxxxxxxxxxxx> wrote:
What problem are you trying to solve by copying tclsh and friends
to a different folder? I have a hunch there may be simpler ways to do
what you're trying to do that will side-step this issue.
My application exe is in a different folder (C:/MyApp/bin/win32/
myapp.exe) than where the tcl and it's other packages are residing(C:/
MyApp/tcl/tcl8.5.2/win32..). To run my appln, I have been only
copying the tcl and tk dlls into the same folder location as my appln
exe. I don't copy any tcl or wish or other folders like tcl8.5, tk8.5
etc in that folder. ( The example I gave before about copying tclsh
etc was to tell how one can get the same error I am getting).
Now, when I run the interp create command, then it complains that it
is not finding a valid init.tcl under the folder from where the
application is run from and it's parent folders. And this is how the
code is written under Tcl_Init() funciton in it's tclInit() eval
block. It doesn't make sense to me why it check's these folder
paths. So, to resolve this error I call the tclPreInitSript()( which
looks like, is independent of the interpreter) to set tclPreInitScript
var's value. But, then I get the error from tkcon.tcl file that there
is no ::tcl_library variable set on calling the "interp create..."
from tkcon.tcl( ::tcl_library seems to be interpreter dependent!!!)
I am just learning to use the tcl file functionings, so probably I
might be missing something.
Do you how can I resolve this error? One way would be to copy all the
tcl binaries created( under C:/MyApp/tcl/tcl8.5.2/win32) to where my
app exe is. But , I would like know if there is a simpler approach,
like setting something etc. to resolve the error.
Thanks.
.
- References:
- ::tcl_library needed to be set for each interpreter???
- From: impm001
- Re: ::tcl_library needed to be set for each interpreter???
- From: Ron Fox
- ::tcl_library needed to be set for each interpreter???
- Prev by Date: Re: 3 Good TCL ebook
- Next by Date: Re: Summary: Re: Tile and toplevel background color
- Previous by thread: Re: ::tcl_library needed to be set for each interpreter???
- Next by thread: Tcl Threads and static packages
- Index(es):
Relevant Pages
|