[GRASS-dev] how to deal with the @mapset in scripts?

Maciej Sieczka tutey at o2.pl
Tue Jul 3 11:06:24 EDT 2007


Maciej Sieczka wrote:
> Glynn Clements wrote:

>> Why do you actually need to use g.findfile? In most cases, you should
>> just pass the map name directly to the command, and let the command
>> handle the checking.

> It's better to check if the output exists

Oops! Sorry, I missed the fact that you are talking about the *input*.
GRASS always handled well the non-existance of input, for me. Only
output name needs to be controlled in the script to avoid running long
scripts for nothing.

Maciek




More information about the grass-dev mailing list