浏览代码

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 年之前
父节点
当前提交
b256d0ff37
共有 1 个文件被更改,包括 1 次插入1 次删除
  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: