[GRASS-SVN] r68547 - grass/trunk/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue May 31 18:17:05 PDT 2016
Author: wenzeslaus
Date: 2016-05-31 18:17:05 -0700 (Tue, 31 May 2016)
New Revision: 68547
Modified:
grass/trunk/lib/python/script/setup.py
Log:
pythonlib: fix import in example, setup is not imported in __init__
Modified: grass/trunk/lib/python/script/setup.py
===================================================================
--- grass/trunk/lib/python/script/setup.py 2016-05-31 22:06:56 UTC (rev 68546)
+++ grass/trunk/lib/python/script/setup.py 2016-06-01 01:17:05 UTC (rev 68547)
@@ -60,9 +60,10 @@
# import (some) GRASS Python bindings
import grass.script as gscript
+ import grass.script.setup as gsetup
# launch session
- rcfile = gscript.setup.init(gisbase, gisdb, location, mapset)
+ rcfile = gsetup.init(gisbase, gisdb, location, mapset)
# example calls
gscript.message('Current GRASS GIS 7 environment:')
More information about the grass-commit
mailing list