[GRASS-SVN] r67621 - grass-addons/grass7/imagery/i.segment.hierarchical

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 22 01:41:13 PST 2016


Author: martinl
Date: 2016-01-22 01:41:13 -0800 (Fri, 22 Jan 2016)
New Revision: 67621

Modified:
   grass-addons/grass7/imagery/i.segment.hierarchical/i.segment.hierarchical.py
Log:
fix i.segment.hierarchical compilation issue (no path found)

Modified: grass-addons/grass7/imagery/i.segment.hierarchical/i.segment.hierarchical.py
===================================================================
--- grass-addons/grass7/imagery/i.segment.hierarchical/i.segment.hierarchical.py	2016-01-21 13:23:39 UTC (rev 67620)
+++ grass-addons/grass7/imagery/i.segment.hierarchical/i.segment.hierarchical.py	2016-01-22 09:41:13 UTC (rev 67621)
@@ -150,11 +150,7 @@
 from grass.pygrass.gis import Location
 from grass.pygrass.utils import get_lib_path
 
-path = get_lib_path("i.segment.hierarchical", "")
-if path is None:
-    raise ImportError("Not able to find the path %s directory." % path)
-
-sys.path.append(path)
+set_path("i.segment.hierarchical")
 from isegpatch import rpatch_map
 
 



More information about the grass-commit mailing list