[GRASS-SVN] r68617 - sandbox/martinl
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jun 5 15:26:01 PDT 2016
Author: neteler
Date: 2016-06-05 15:26:01 -0700 (Sun, 05 Jun 2016)
New Revision: 68617
Modified:
sandbox/martinl/fix_renamed_options.py
sandbox/martinl/print_module_parameters_csv.py
Log:
sandbox: print module parameters as CSV (late update from G7.0.0 release)
Modified: sandbox/martinl/fix_renamed_options.py
===================================================================
--- sandbox/martinl/fix_renamed_options.py 2016-06-05 22:18:06 UTC (rev 68616)
+++ sandbox/martinl/fix_renamed_options.py 2016-06-05 22:26:01 UTC (rev 68617)
@@ -7,6 +7,7 @@
import fnmatch
srcdir=os.path.join(os.environ['HOME'], 'src/grass_trunk')
+#srcdir='/data/tmp/grass71'
infile=os.path.join(srcdir, 'lib/gis/renamed_options')
def get_prefix(module):
@@ -40,7 +41,7 @@
modify_html(html, oldkey, newkey)
else:
- # TODO
+ print "TODO: fix_html not module case"
def get_py_list():
pylist = []
Modified: sandbox/martinl/print_module_parameters_csv.py
===================================================================
--- sandbox/martinl/print_module_parameters_csv.py 2016-06-05 22:18:06 UTC (rev 68616)
+++ sandbox/martinl/print_module_parameters_csv.py 2016-06-05 22:26:01 UTC (rev 68617)
@@ -1,7 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
-# prints for each GRASS module list of option keys and descriptions
+# prints for each GRASS module list of option keys and descriptions as CSV table
from grass.script import task as gtask
from grass.script.core import get_commands
@@ -14,7 +14,7 @@
return p.get('description')
def main():
-# print '-' * 80
+ print 'Module' + '€' + 'flags_parms' + '€' + 'Description'
for cmd in sorted(get_commands()[0]):
try:
task = gtask.grassTask(cmd)
More information about the grass-commit
mailing list