Re: Launching Tkcon with a main script and another as arguments



tonydoy@xxxxxxxxxxxxxx wrote:
From within the wish console I am launching the Tkcon console with my
mainScript.tcl and configScript.tcl, which is required by
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
.