[GRASS-user] How to embed a grass script (for example v.db.addcol) into a Pythonscript on windows?

Glynn Clements glynn at gclements.plus.com
Wed Mar 3 17:47:46 EST 2010

Sonja Jankowfsky wrote:

> Thanks, but the data type doesn't change that's a shell script. I still 
> have the same error message: (sorry, it's in french, but it says as much 
> as v.db.addcol is not a executable program or a bat file).
> I tried as well os.system("v.db.addcol map=ditch columns='urban int'"), 
> but it's the same.

This can occur if PATH is incorrect. GRASS' "bin" directory should be
in the path, the "scripts" directory shouldn't be. There should be a
batch file named v.db.addcol.bat in the "bin" directory.

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-user mailing list