Skip to content

Commit

Permalink
v.in.e00: fix different mistakes, see https://trac.osgeo.org/grass/ti…
Browse files Browse the repository at this point in the history
…cket/2652

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65055 15284696-431f-4ddb-bdfa-cd5b030d7da7
  • Loading branch information
petrasovaa committed Apr 15, 2015
1 parent 6cbb377 commit 577747c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/v.in.e00/v.in.e00.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down Expand Up @@ -118,7 +119,6 @@ def main():
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)
Expand Down Expand Up @@ -157,7 +157,7 @@ def main():
grass.message(_("Done."))

# write cmd history:
grass.vector_history(name)
gvect.vector_history(name)

if __name__ == "__main__":
options, flags = grass.parser()
Expand Down

0 comments on commit 577747c

Please sign in to comment.