[GRASS-dev] [bug #4960] (grass) gis.m has menu entries for
nonexisting modules
Michael Barton
michael.barton at asu.edu
Fri Aug 4 14:53:35 EDT 2006
This looks like a good workaround to the issue of missing modules. If it
works, go ahead and commit it.
Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
> From: Maciej Sieczka <tutey at o2.pl>
> Date: Fri, 04 Aug 2006 10:47:41 +0200
> To: Ma-ris Nartišs <maris.gis at gmail.com>
> Cc: <grass-dev at grass.itc.it>
> Subject: Re: [GRASS-dev] [bug #4960] (grass) gis.m has menu entries for
> nonexisting modules
>
> Ma-ris Nartišs napisa?(a):
>
>> --- gui/tcltk/gis.m/runandoutput.tcl.orig 2006-07-22
>> 12:29:48.000000000 +0300
>> +++ gui/tcltk/gis.m/runandoutput.tcl 2006-08-03 23:09:43.000000000 +0300
>> @@ -65,10 +65,15 @@
>> }
>>
>> proc run_ui {cmd} {
>> - global dlg path
>> + global dlg path env
>>
>> set program [lindex $cmd 0]
>>
>> + if { ![file executable $env(GISBASE)/bin/$program] } {
>> + tk_messageBox -icon error -message [G_msg "Sorry, your GRASS
>> installation lacks module \"$program\""]
>> + return
>> + }
>> +
>> set code [exec -- $program --tcltk]
>>
>> set path .dialog$dlg
>
> Ma-ris,
>
> Very good, in my opinion. Easy to implement and making user's life
> easier. I'd like to see it applied.
>
> Maybe let's add to the message: "See REQUIREMENTS.html/Optional
> requirements for details." (or something like that)
>
> Maciek
>
>
More information about the grass-dev
mailing list