Browse Source

fix https://trac.osgeo.org/grass/ticket/1046

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42066 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 years ago
parent
commit
24b6501a3f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      gui/wxpython/gui_modules/globalvar.py

+ 2 - 0
gui/wxpython/gui_modules/globalvar.py

@@ -22,6 +22,8 @@ import locale
 import gettext
 gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
 
+grassPath = os.path.join(globalvar.ETCDIR, "python")
+sys.path.append(grassPath)
 import grass.script as grass
 
 # wxversion.select() called once at the beginning