[GRASS-SVN] r63442 - in grass-addons/grass7/misc/m.surf.nnbathy: r.surf.nnbathy v.surf.nnbathy
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Dec 8 07:42:12 PST 2014
Author: lazaa
Date: 2014-12-08 07:42:12 -0800 (Mon, 08 Dec 2014)
New Revision: 63442
Modified:
grass-addons/grass7/misc/m.surf.nnbathy/r.surf.nnbathy/r.surf.nnbathy.py
grass-addons/grass7/misc/m.surf.nnbathy/v.surf.nnbathy/v.surf.nnbathy.py
Log:
m.surf.nnbathy: attemt to fix compilation via g.extension
Modified: grass-addons/grass7/misc/m.surf.nnbathy/r.surf.nnbathy/r.surf.nnbathy.py
===================================================================
--- grass-addons/grass7/misc/m.surf.nnbathy/r.surf.nnbathy/r.surf.nnbathy.py 2014-12-08 15:31:10 UTC (rev 63441)
+++ grass-addons/grass7/misc/m.surf.nnbathy/r.surf.nnbathy/r.surf.nnbathy.py 2014-12-08 15:42:12 UTC (rev 63442)
@@ -1,7 +1,7 @@
#!/usr/bin/env python
############################################################################
#
-# MODULE: v.surf.nnbathy.py
+# MODULE: r.surf.nnbathy
#
# AUTHOR(S): Adam Laza (mentor: Martin Landa)
# (based on v.surf.nnbathy from GRASS 6)
@@ -61,10 +61,9 @@
from grass.script.core import parser
import grass.script as grass
-from nnbathy import Nnbathy_raster
-
-
def main():
+ sys.path.insert(1, os.path.join(os.path.dirname(sys.path[0]), 'etc', 'nnbathy'))
+ from nnbathy import Nnbathy_raster
obj = Nnbathy_raster(options)
obj.compute()
obj.create_output()
Modified: grass-addons/grass7/misc/m.surf.nnbathy/v.surf.nnbathy/v.surf.nnbathy.py
===================================================================
--- grass-addons/grass7/misc/m.surf.nnbathy/v.surf.nnbathy/v.surf.nnbathy.py 2014-12-08 15:31:10 UTC (rev 63441)
+++ grass-addons/grass7/misc/m.surf.nnbathy/v.surf.nnbathy/v.surf.nnbathy.py 2014-12-08 15:42:12 UTC (rev 63442)
@@ -1,7 +1,7 @@
#!/usr/bin/env python
############################################################################
#
-# MODULE: v.surf.nnbathy.py
+# MODULE: v.surf.nnbathy
#
# AUTHOR(S): Adam Laza (mentor: Martin Landa)
# (based on v.surf.nnbathy from GRASS 6)
@@ -84,10 +84,10 @@
from grass.script.core import parser
import grass.script as grass
-from nnbathy import Nnbathy_vector, Nnbathy_file
-
def main():
+ sys.path.insert(1, os.path.join(os.path.dirname(sys.path[0]), 'etc', 'nnbathy'))
+ from nnbathy import Nnbathy_vector, Nnbathy_file
# initial controls
if (options['input'] and options['file']):
grass.fatal("Please specify either the 'input' \
More information about the grass-commit
mailing list