[GRASS-dev] g.mapsets, print only accessible mapsets

Maris Nartiss maris.gis at gmail.com
Thu Mar 20 11:21:51 EDT 2008

In TclTk it's done simply by listing all directories owned by user -

foreach i [lsort [glob -directory [pwd] *]] {
if {[file isdirectory $i] && [file owned $i] } {
$mapList insert end [file tail $i]


2008/3/20, Martin Landa <landa.martin at gmail.com>:
> Markus,
>BTW how TCL/TK checks if mapsets is accessible (I see
> that those mapsets are hidden in welcome screen)?
> Martin
> --
> Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

More information about the grass-dev mailing list