Browse Source

wxGUI: grass module path added (MS Windows related patch)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@34600 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 years ago
parent
commit
7a8eab1587
2 changed files with 7 additions and 2 deletions
  1. 4 1
      gui/wxpython/gui_modules/gcmd.py
  2. 3 1
      gui/wxpython/gui_modules/utils.py

+ 4 - 1
gui/wxpython/gui_modules/gcmd.py

@@ -49,8 +49,11 @@ else:
     import fcntl
 from threading import Thread
 
-import grass
 import globalvar
+grassPath = os.path.join(globalvar.ETCDIR, "python")
+sys.path.append(grassPath)
+import grass
+
 import utils
 from debug import Debug as Debug
 

+ 3 - 1
gui/wxpython/gui_modules/utils.py

@@ -17,9 +17,11 @@ for details.
 import os
 import sys
 
+import globalvar
+grassPath = os.path.join(globalvar.ETCDIR, "python")
+sys.path.append(grassPath)
 import grass
 
-import globalvar
 import gcmd
 import grassenv
 try: