Michael Barton 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?
No, it's reading the variable okay, it just can't use the value.
--
Glynn Clements <[EMAIL PROTECTED]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev