[GRASS-SVN] r39714 - grass/trunk/gui/wxpython/gui_modules

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


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

Modified:
   grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
fix trac #808
    (merge r39713 from devbr6)


Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2009-11-12 23:01:05 UTC (rev 39713)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2009-11-12 23:05:09 UTC (rev 39714)
@@ -642,7 +642,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