Browse Source

v.krige: import globalvar only if needed

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57329 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 years ago
parent
commit
dcac2c499e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/v.krige/v.krige.py

+ 1 - 1
scripts/v.krige/v.krige.py

@@ -97,7 +97,6 @@ import thread
 
 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 @@ def main(argv = None):
         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