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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 29 01:06:55 EST 2009


Author: cmbarton
Date: 2009-11-29 01:06:55 -0500 (Sun, 29 Nov 2009)
New Revision: 39850

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
Fix bug that keeps python scripts from launching auto GUI

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2009-11-29 06:05:17 UTC (rev 39849)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2009-11-29 06:06:55 UTC (rev 39850)
@@ -603,14 +603,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