[GRASS-SVN] r38282 - grass-addons/vector/v.krige
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 6 07:47:50 EDT 2009
Author: aghisla
Date: 2009-07-06 07:47:48 -0400 (Mon, 06 Jul 2009)
New Revision: 38282
Modified:
grass-addons/vector/v.krige/v.krige.py
Log:
more towards CLI and wxGUI harmonisation
Modified: grass-addons/vector/v.krige/v.krige.py
===================================================================
--- grass-addons/vector/v.krige/v.krige.py 2009-07-06 09:58:44 UTC (rev 38281)
+++ grass-addons/vector/v.krige/v.krige.py 2009-07-06 11:47:48 UTC (rev 38282)
@@ -333,9 +333,10 @@
pass
def main(argv=None):
+
if argv is None:
# is this check needed? I won't call the module in other way than last line.
- argv = sys.argv
+ argv = sys.argv[1:] #stripping first item, the full name of this script
print argv
#@TODO(anne): add command line arguments acceptance.
#@TIP: from optparse import OptionParser
More information about the grass-commit
mailing list