[GRASS-SVN] r57329 - grass/trunk/scripts/v.krige
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 31 02:16:24 PDT 2013
Author: martinl
Date: 2013-07-31 02:16:24 -0700 (Wed, 31 Jul 2013)
New Revision: 57329
Modified:
grass/trunk/scripts/v.krige/v.krige.py
Log:
v.krige: import globalvar only if needed
Modified: grass/trunk/scripts/v.krige/v.krige.py
===================================================================
--- grass/trunk/scripts/v.krige/v.krige.py 2013-07-30 16:02:02 UTC (rev 57328)
+++ grass/trunk/scripts/v.krige/v.krige.py 2013-07-31 09:16:24 UTC (rev 57329)
@@ -97,7 +97,6 @@
if __name__ == "__main__":
sys.path.append(os.path.join(os.getenv('GISBASE'), 'etc', 'gui', 'wxpython'))
-from core import globalvar
if not os.environ.has_key("GISBASE"):
print "You must be in GRASS GIS to run this program."
@@ -313,6 +312,7 @@
argv = sys.argv[1:] # stripping first item, the full name of this script
# wxGUI call
if not os.getenv("GRASS_WXBUNDLED"):
+ from core import globalvar
globalvar.CheckForWx()
import vkrige as GUI
More information about the grass-commit
mailing list