[GRASS-SVN] r67670 - grass/trunk/lib/python/pygrass

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 25 12:56:39 PST 2016


Author: wenzeslaus
Date: 2016-01-25 12:56:39 -0800 (Mon, 25 Jan 2016)
New Revision: 67670

Modified:
   grass/trunk/lib/python/pygrass/utils.py
Log:
fix wrong module import in r67669

Modified: grass/trunk/lib/python/pygrass/utils.py
===================================================================
--- grass/trunk/lib/python/pygrass/utils.py	2016-01-25 19:57:01 UTC (rev 67669)
+++ grass/trunk/lib/python/pygrass/utils.py	2016-01-25 20:56:39 UTC (rev 67670)
@@ -287,9 +287,10 @@
     """Return the path of the libname contained in the module.
 
     .. deprecated:: 7.1
-        Use :func:`grass.script.core.get_lib_path` instead.
+        Use :func:`grass.script.utils.get_lib_path` instead.
     """
-    return grasscore.get_lib_path(modname=modname, libname=libname)
+    from grass.script.utils import get_lib_path
+    return get_lib_path(modname=modname, libname=libname)
 
 
 def set_path(modulename, dirname=None, path='.'):
@@ -301,10 +302,10 @@
     :param path: string with the path to reach the dirname locally.
 
     .. deprecated:: 7.1
-        Use :func:`grass.script.core.set_path` instead.
+        Use :func:`grass.script.utils.set_path` instead.
     """
-    return grasscore.set_path(modulename=modulename, dirname=dirname,
-                              path=path)
+    from grass.script.utils import set_path
+    return set_path(modulename=modulename, dirname=dirname, path=path)
 
 
 def split_in_chunk(iterable, length=10):



More information about the grass-commit mailing list