[GRASS-dev] select issue with wingrass

Michael Barton michael.barton at asu.edu
Sun Nov 18 13:56:02 EST 2007




On 11/18/07 10:27 AM, "Glynn Clements" <glynn at gclements.plus.com> wrote:

>> 
>> If this is set in gui.tcl (the first thing run by the GRASS TclTk gui),
>> won't it then be available to all other gui modules?
>> 
>> That is, why can't select.tcl access GISBASE if env(GISBASE) is set in
>> gui.tcl?
> 
> If the array element isn't set, or if "global env" is missing, you
> would get an error from Tcl. That doesn't appear to be the case here.

The procedure in select.tcl DOES have global env...

proc GSelect_::create { element args } {
    # main procedure for creating and managing selection window, which a
tree
    # within a scrolling window.

    global env id

...However, gui.tcl sets env(GISDBASE) etc outside of any procedure (i.e.,
runs these before any procedure). But there is no global env statement.
Maybe this is needed for Windows?

Michael

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton




More information about the grass-dev mailing list