Re: Launching Tkcon with a main script and another as arguments
- From: Jeff Hobbs <jeffh@xxxxxxxxxxxxxxx>
- Date: Fri, 29 Jun 2007 10:21:49 -0700
tonydoy@xxxxxxxxxxxxxx wrote:
mainScript.tcl and configScript.tcl, which is required byFrom within the wish console I am launching the Tkcon console with my
mainScript.tcl as an argument. The command I am using in the wish
console is
'exec wish tkcon.tcl -- mainScript.tcl configScript.tcl'
The Tkcon console is launched and mainScript.tcl is sourced but then
fails because it doesn't have a configuration script as an argument.
It seems that configScript.tcl is NOT being considered as an argument
and is considered to be sourced a separate script (which fails because
it just contains user defined constants).
First, try updating to the latest in CVS (you can do this via tkcon's Help -> Retrieve Latest Version if it is relatively recent).
Then do:
wish tkcon.tcl mainScript.tcl -- configScript.tcl
I think there was a bug in the -- handling previously that I've corrected. Let me know whether it works or not.
Jeff
.
- Follow-Ups:
- Re: Launching Tkcon with a main script and another as arguments
- From: tonydoy@xxxxxxxxxxxxxx
- Re: Launching Tkcon with a main script and another as arguments
- References:
- Launching Tkcon with a main script and another as arguments
- From: tonydoy@xxxxxxxxxxxxxx
- Launching Tkcon with a main script and another as arguments
- Prev by Date: Re: A widget for the user's editor of choice
- Next by Date: Re: A widget for the user's editor of choice
- Previous by thread: Re: Launching Tkcon with a main script and another as arguments
- Next by thread: Re: Launching Tkcon with a main script and another as arguments
- Index(es):