[GRASS-dev] Re: another not quiet GRASS command

Martin Landa landa.martin at gmail.com
Mon Sep 3 09:40:31 EDT 2007


Hi Michael,

2007/9/2, Michael Barton <Michael.Barton at asu.edu>:

> g.mapset mapset=PERMANENT location=Spearfish60_test --q
> WARNING: Your shell continues to use the history for the old mapset.
>
> This causes cmd.Command (wxgrass command processor using subprocess.Popen)
> to report an error when there isn't one.

mapset = "PERMANENT"
location = "spearfish60"

mapsetCmd = cmd.Command(['g.mapset', 'mapset=%s' % mapset,
'location=%s' % location, '--q'])

print "%d" % mapsetCmd.returncode

# 0 success
# 1 failure

?

Martin
-- 
Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *




More information about the grass-dev mailing list