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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 29 01:10:46 EST 2009


Author: cmbarton
Date: 2009-11-29 01:10:46 -0500 (Sun, 29 Nov 2009)
New Revision: 39851

Modified:
   grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
Fix bug in menuform.py that keeps python scripts from launching. Backport from develbranch_6 r39850.

Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2009-11-29 06:06:55 UTC (rev 39850)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2009-11-29 06:10:46 UTC (rev 39851)
@@ -649,14 +649,15 @@
 
         # module name + keywords
         if self.task.name.split('.')[-1] in ('py', 'sh'):
-            title = self.task.name.split('.')[:-1]
+            title = str(self.task.name.rsplit('.',1)[0])
         else:
             title = self.task.name
         try:
-            title +=  " [" + ', '.join( self.task.keywords ) + "]"
+            if self.task.keywords != ['']:
+                title +=  " [" + ', '.join( self.task.keywords ) + "]"
         except ValueError:
             pass
-
+        
         wx.Frame.__init__(self, parent=parent, id=ID, title=title,
                           pos=wx.DefaultPosition, style=wx.DEFAULT_FRAME_STYLE | wx.TAB_TRAVERSAL)
 



More information about the grass-commit mailing list