[GRASS-SVN] r39713 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 12 18:01:05 EST 2009


Author: martinl
Date: 2009-11-12 18:01:05 -0500 (Thu, 12 Nov 2009)
New Revision: 39713

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
fix trac #808


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2009-11-12 22:04:07 UTC (rev 39712)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2009-11-12 23:01:05 UTC (rev 39713)
@@ -595,7 +595,10 @@
         self.parent = parent # LayerTree | None
 
         # module name + keywords
-        title = self.task.name.rstrip('.py').rstrip('.sh')
+        if self.task.name.split('.')[-1] in ('py', 'sh'):
+            title = self.task.name.split('.')[:-1]
+        else:
+            title = self.task.name
         try:
             title +=  " [" + ', '.join( self.task.keywords ) + "]"
         except ValueError:



More information about the grass-commit mailing list