Browse Source

replace only 'sh/py' extension
(merge https://trac.osgeo.org/grass/changeset/39137 from relbr64)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39140 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 15 years ago
parent
commit
b256d0ff37
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/gui_modules/menuform.py

+ 1 - 1
gui/wxpython/gui_modules/menuform.py

@@ -627,7 +627,7 @@ class mainFrame(wx.Frame):
         self.parent = parent # LayerTree | None
 
         # module name + keywords
-        title = self.task.name.replace('.py', '').replace('.sh', '')
+        title = self.task.name.rstrip('.py').rstrip('.sh')
         try:
             title +=  " [" + ', '.join( self.task.keywords ) + "]"
         except ValueError: