[GRASS-SVN] r38289 - grass-addons/vector/v.krige
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 6 09:38:57 EDT 2009
Author: martinl
Date: 2009-07-06 09:38:57 -0400 (Mon, 06 Jul 2009)
New Revision: 38289
Modified:
grass-addons/vector/v.krige/v.krige.py
Log:
CLI versus GUI
Modified: grass-addons/vector/v.krige/v.krige.py
===================================================================
--- grass-addons/vector/v.krige/v.krige.py 2009-07-06 13:32:06 UTC (rev 38288)
+++ grass-addons/vector/v.krige/v.krige.py 2009-07-06 13:38:57 UTC (rev 38289)
@@ -15,6 +15,11 @@
for details.
"""
+#%module
+#% description: Performs ordinary kriging.
+#% keywords: kriging
+#%end
+
import os, sys
try:
@@ -376,6 +381,8 @@
k.Show()
app.MainLoop()
-
if __name__ == '__main__':
- main()
+ if len(sys.argv) > 1:
+ grass.parser()
+ else:
+ main()
More information about the grass-commit
mailing list