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.

_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to