瀏覽代碼

g.manual: no test for browser, only catching error if start was not successful (https://trac.osgeo.org/grass/ticket/2008)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56880 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 12 年之前
父節點
當前提交
4bce20de06
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      scripts/g.manual/g.manual.py

+ 0 - 3
scripts/g.manual/g.manual.py

@@ -46,9 +46,6 @@ import os
 from grass.script import core as grass
 
 def start_browser(entry):
-    if browser != 'xdg-open' and not grass.find_program(browser):
-        grass.fatal(_("Browser '%s' not found") % browser)
-    
     path = os.path.join(gisbase, 'docs', 'html', entry + '.html')
     if not os.path.exists(path) and os.getenv('GRASS_ADDON_BASE'):
         path = os.path.join(os.getenv('GRASS_ADDON_BASE'), 'docs', 'html', entry + '.html')