[GRASS-dev] r.mapcal and python
Roberto Antolín
rantolin.geo at gmail.com
Tue Nov 11 03:22:36 EST 2008
Hi Glynn and all,
Glynn Clements escribió:
>>> cmdargs2=["%s=if(%s>%s,10000,0)"%(output,map1,map2)]
>>> os.spawnvp(os.P_WAIT,"r.mapcalc", ["r.mapcalc"] + cmdargs2)
>
> Don't use the os.spawn* functions; they have been superseded by
> subprocess.Popen() and subprocess.call().
After your (all) messages I searched for some information about
subprocess.* and saw that os.spawn* were replaced by them.
Thank you for pointing me this! It confirms my doubts. In fact,
subprocess.* are currently being used in grass.py library, aren't they?
Using subprocess.* will give some kind of homogeneity.
Cheers,
Roberto.
More information about the grass-dev
mailing list