Browse Source

t.vect.mapcalc update

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58974 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 11 năm trước cách đây
mục cha
commit
f057f8ceae

+ 1 - 0
lib/python/temporal/temporal_raster3d_algebra.py

@@ -11,6 +11,7 @@ for details.
 
 """
 
+import grass.pygrass.modules as pygrass
 from temporal_raster_base_algebra import *
 
 ###############################################################################

+ 1 - 0
lib/python/temporal/temporal_raster_algebra.py

@@ -53,6 +53,7 @@ for details.
 @endcode
 """
 
+import grass.pygrass.modules as pygrass
 from temporal_raster_base_algebra import *
 
 ###############################################################################

+ 0 - 1
lib/python/temporal/temporal_raster_base_algebra.py

@@ -96,7 +96,6 @@ for details.
 @endcode
 """
 
-import grass.pygrass.modules as pygrass
 from temporal_raster_operator import *
 from temporal_algebra import *
 

+ 4 - 4
temporal/t.vect.mapcalc/t.vect.mapcalc.py

@@ -43,7 +43,7 @@
 #% description: Activate spatial topology.
 #%end
 
-import grass.script as grass
+import grass.script
 import grass.temporal as tgis
 import sys
 
@@ -58,13 +58,13 @@ def main():
         import ply.lex as lex
         import ply.yacc as yacc
     except:
-        grass.fatal(_("Please install PLY (Lex and Yacc Python implementation) to use the temporal algebra modules."))
+        grass.script.fatal(_("Please install PLY (Lex and Yacc Python implementation) to use the temporal algebra modules."))
 
     tgis.init(True)
     p = tgis.TemporalVectorAlgebraParser(run = True, debug=False, spatial = spatial)
-    p.parse(expression, stdstype, basename)
+    p.parse(expression, basename, grass.script.overwrite())
 
 if __name__ == "__main__":
-    options, flags = grass.parser()
+    options, flags = grass.script.parser()
     sys.exit(main())