Can't run grass tools from python script (grass 6.4, python 2.7, win7)
问题 I am new to GRASS, and i do not manage to get started. I am trying to write a python script that will call grass tool (at that point it does not really matter what tool) I created the location and mapset interactively, and set all the definitions. still I can't get 'grass.gisenv()' to give any output but {}. my code: import sys import os os.environ['GISBASE'] = r'C:\OSGeo4W\apps\grass\grass-6.4.4' os.environ['GISRC']= r'C:\Users\USER\AppData\Roaming\GRASS6\grassrc6' os.environ['LD_LIBRARY