<HTML>
<HEAD>
<TITLE>trying to test error trapping for invalid gisdbase, location, and mapset</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>William,<BR>
<BR>
I&#8217;m trying to test error trapping code for the GRASS startup that will gracefully deal with invalid .grassrc6 settings for gisdbase, location, or mapset.<BR>
<BR>
When I try to test this (i.e., with a bad setting), I get a shell error before I even hit the gis_set.tcl file.<BR>
<BR>
ERROR: LOCATION &lt;&lt; /Users/Shared/grassdata/nothing &gt;&gt; not available<BR>
/Users/Shared/grassdata/nothing/PERMANENT/.gislock: No such file or directory<BR>
ERROR: /Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/lock:<BR>
cmbarton is currently running GRASS in selected mapset (file /Users/Shared/grassdata/nothing/PERMANENT/.gislock found). Concurrent use not allowed.<BR>
logout<BR>
<BR>
I can find this the code for this in init.sh and am wondering if it is in the script that launches the Mac app? I need to disable it to test the TclTk (and wxPython) code. If not Mac specific, can someone tell me where this code is?<BR>
<BR>
Rather than simply raising an error, which would be meaningless to someone who doesn&#8217;t know what a .grassrc6 file is, it would be better if an invalid setting branched the GRASS startup to the prompt that comes up when gisdbase, location, or mapset is not set&#8212;allowing a user to choose a valid value.<BR>
<BR>
Michael<BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution &amp; Social Change &nbsp;&nbsp;&nbsp;<BR>
Center for Social Dynamics &amp; Complexity<BR>
Arizona State University<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a> <BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>