[GRASS-SVN] r39849 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 29 01:05:17 EST 2009


Author: cmbarton
Date: 2009-11-29 01:05:17 -0500 (Sun, 29 Nov 2009)
New Revision: 39849

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

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py	2009-11-28 19:49:52 UTC (rev 39848)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py	2009-11-29 06:05:17 UTC (rev 39849)
@@ -714,11 +714,12 @@
 
         # 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
 



More information about the grass-commit mailing list