[GRASS-SVN] r60068 - grass/trunk/scripts/v.krige

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 4 03:16:29 PDT 2014


Author: martinl
Date: 2014-05-04 03:16:29 -0700 (Sun, 04 May 2014)
New Revision: 60068

Modified:
   grass/trunk/scripts/v.krige/v.krige.py
Log:
v.krige: fix GUI import

Modified: grass/trunk/scripts/v.krige/v.krige.py
===================================================================
--- grass/trunk/scripts/v.krige/v.krige.py	2014-05-04 10:10:51 UTC (rev 60067)
+++ grass/trunk/scripts/v.krige/v.krige.py	2014-05-04 10:16:29 UTC (rev 60068)
@@ -8,7 +8,7 @@
 
 DEPENDS:   R 2.x, packages gstat, maptools and spgrass6, optional: automap
 
-COPYRIGHT: (C) 2009, 2012 by the GRASS Development Team
+COPYRIGHT: (C) 2009-2014 the GRASS Development Team
 
 This program is free software under the GNU General Public
 License (>=v2). Read the file COPYING that comes with GRASS
@@ -95,19 +95,10 @@
 import time
 import thread
 
-if __name__ == "__main__":
-    sys.path.append(os.path.join(os.getenv('GISBASE'), 'etc', 'gui', 'wxpython'))
-
 if not os.environ.has_key("GISBASE"):
     print "You must be in GRASS GIS to run this program."
     sys.exit(1)
 
-GUIModulesPath = os.path.join(os.getenv("GISBASE"), "etc", "gui", "wxpython")
-sys.path.append(GUIModulesPath)
-
-GUIPath = os.path.join(os.getenv("GISBASE"), "etc", "gui", "wxpython", "scripts")
-sys.path.append(GUIPath)
-
 ### i18N
 import gettext
 gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode = True)
@@ -314,7 +305,7 @@
         if not os.getenv("GRASS_WXBUNDLED"):
             from core import globalvar
             globalvar.CheckForWx()
-        import vkrige as GUI
+        from modules import vkrige as GUI
         
         import wx
         



More information about the grass-commit mailing list