瀏覽代碼

wxGUI: set grass path
(merge from devbr6, https://trac.osgeo.org/grass/changeset/37032)


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

Martin Landa 16 年之前
父節點
當前提交
9f7b589faf
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      gui/wxpython/wxgui.py

+ 2 - 0
gui/wxpython/wxgui.py

@@ -64,6 +64,8 @@ import wx.lib.customtreectrl as CT
 import wx.lib.flatnotebook as FN
 from wx.lib.wordwrap import wordwrap
 
+grassPath = os.path.join(globalvar.ETCDIR, "python")
+sys.path.append(grassPath)
 import grass
 
 import gui_modules.utils as utils