I'm trying to access Grass functionality via Python outside the shell in the GUI.
import sys, os gisbase = os.environ['GISBASE'] = r'C:\Program Files (x86)\GRASS GIS 7.0.svn' gisdbase = r'E:\Sample' location = 'duplin_phons' mapset = 'PERMANENT' sys.path.append(os.path.join(os.environ['GISBASE'], "etc", "python", "grass", "script")) import grass.script as grass import grass.script.setup as gsetup However when I try to run any grass commands I get ImportError: No module named grass.script When I'm in the shell and run import grass.script as grass print grass.__file__ I'm returned: C:\Program Files (x86)\GRASS GIS 7.0.svn\etc\python\grass\script\__init__.py Am I missing a connection somewhere? Thanks for suggestions Chad
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
