[GRASS-user] A Py-script where I check group and delete
Hamish
hamish_b at yahoo.com
Fri Oct 1 17:29:40 EDT 2010
Luisa wrote:
> I have a Python-script where I create a group (using i.group)
> but, if the group already exists I need to eliminate (g.remove).
> My question is: How can I check, using Python Script code, if a
> group already exists?
run g.findfile. There could be a grass python library shortcut
for this, I'm not sure, check the python section of the GRASS
Programmer's manual.
Hamish
More information about the grass-user
mailing list