[GRASS-SVN] r34599 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 28 12:46:05 EST 2008


Author: martinl
Date: 2008-11-28 12:46:05 -0500 (Fri, 28 Nov 2008)
New Revision: 34599

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gcmd.py
   grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py
Log:
wxGUI: grass module path added (MS Windows related patch)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gcmd.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gcmd.py	2008-11-28 15:22:13 UTC (rev 34598)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gcmd.py	2008-11-28 17:46:05 UTC (rev 34599)
@@ -49,8 +49,11 @@
     import fcntl
 from threading import Thread
 
+import globalvar
+grassPath = os.path.join(globalvar.ETCDIR, "python")
+sys.path.append(grassPath)
 import grass
-import globalvar
+
 import utils
 from debug import Debug as Debug
 

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py	2008-11-28 15:22:13 UTC (rev 34598)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py	2008-11-28 17:46:05 UTC (rev 34599)
@@ -17,9 +17,11 @@
 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:



More information about the grass-commit mailing list