[GRASS-SVN] r68916 - grass/branches/releasebranch_7_0/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jul 9 12:36:32 PDT 2016
Author: wenzeslaus
Date: 2016-07-09 12:36:32 -0700 (Sat, 09 Jul 2016)
New Revision: 68916
Modified:
grass/branches/releasebranch_7_0/lib/python/script/setup.py
Log:
pythonlib: fix import in example, setup is not imported in __init__.py (backport r68547)
Modified: grass/branches/releasebranch_7_0/lib/python/script/setup.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/script/setup.py 2016-07-09 19:35:18 UTC (rev 68915)
+++ grass/branches/releasebranch_7_0/lib/python/script/setup.py 2016-07-09 19:36:32 UTC (rev 68916)
@@ -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