[GRASS-SVN] r68915 - grass/branches/releasebranch_7_2/lib/python/script

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 9 12:35:18 PDT 2016


Author: wenzeslaus
Date: 2016-07-09 12:35:18 -0700 (Sat, 09 Jul 2016)
New Revision: 68915

Modified:
   grass/branches/releasebranch_7_2/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_2/lib/python/script/setup.py
===================================================================
--- grass/branches/releasebranch_7_2/lib/python/script/setup.py	2016-07-09 19:29:43 UTC (rev 68914)
+++ grass/branches/releasebranch_7_2/lib/python/script/setup.py	2016-07-09 19:35:18 UTC (rev 68915)
@@ -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