GRASS Programmer's Manual  6.4.2(2012)
python::setup Namespace Reference

Functions

def init
 Initialize system variables to run scripts without starting GRASS explicitly.

Function Documentation

def python.setup.init (   gisbase,
  dbase = '',
  location = 'demolocation',
  mapset = 'PERMANENT' 
)

Initialize system variables to run scripts without starting GRASS explicitly.

User is resposible to delete gisrc file.

Parameters:
gisbasepath to GRASS installation
dbasepath to GRASS database (default: '')
locationlocation name (default: 'demolocation')
mapsetmapset within given location (default: 'PERMANENT')
Returns:
path to gisrc file

Definition at line 27 of file setup.py.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines