[GRASS-SVN] r65055 - grass/trunk/scripts/v.in.e00

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 14 18:43:30 PDT 2015


Author: annakrat
Date: 2015-04-14 18:43:30 -0700 (Tue, 14 Apr 2015)
New Revision: 65055

Modified:
   grass/trunk/scripts/v.in.e00/v.in.e00.py
Log:
v.in.e00: fix different mistakes, see #2652

Modified: grass/trunk/scripts/v.in.e00/v.in.e00.py
===================================================================
--- grass/trunk/scripts/v.in.e00/v.in.e00.py	2015-04-14 19:45:19 UTC (rev 65054)
+++ grass/trunk/scripts/v.in.e00/v.in.e00.py	2015-04-15 01:43:30 UTC (rev 65055)
@@ -41,14 +41,15 @@
 import shutil
 import glob
 from grass.script.utils import try_rmdir, try_remove, basename
+from grass.script import vector as gvect
 from grass.script import core as grass
 from grass.exceptions import CalledModuleError
 
 
 def main():
-    filename = options['file']
+    filename = options['input']
     type = options['type']
-    vect = options['vect']
+    vect = options['output']
 
     e00tmp = str(os.getpid())
 
@@ -118,7 +119,6 @@
     else:
 	grass.message(_("E00 Compressed ASCII found. Will uncompress first..."))
 	try_remove(e00shortname)
-	try_remove(info)
 	grass.call(['e00conv', filename, e00tmp + '.e00'])
 	grass.message(_("...converted to Arc Coverage in current directory"))
 	grass.call(['avcimport', e00tmp + '.e00', e00shortname], stderr = nuldev)
@@ -157,7 +157,7 @@
     grass.message(_("Done."))
 
     # write cmd history:
-    grass.vector_history(name)
+    gvect.vector_history(name)
 
 if __name__ == "__main__":
     options, flags = grass.parser()



More information about the grass-commit mailing list