[GRASS-SVN] r40345 - grass-addons/vector/v.in.lines

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 9 07:38:42 EST 2010


Author: hamish
Date: 2010-01-09 07:38:41 -0500 (Sat, 09 Jan 2010)
New Revision: 40345

Modified:
   grass-addons/vector/v.in.lines/v.in.lines.py
Log:
minor fixes

Modified: grass-addons/vector/v.in.lines/v.in.lines.py
===================================================================
--- grass-addons/vector/v.in.lines/v.in.lines.py	2010-01-09 12:30:44 UTC (rev 40344)
+++ grass-addons/vector/v.in.lines/v.in.lines.py	2010-01-09 12:38:41 UTC (rev 40345)
@@ -129,18 +129,17 @@
 
 
     ##### check that there are at least two columns (three if -z is given)
-    inf = file(infile)
+    inf = file(runfile)
     line = inf.readline()
     numcols = len(line.split(' '))
     if (do3D and numcols < 3) or (not do3D and numcols < 2):
-        g.message -e "Not enough data columns. (incorrect fs setting?)"
+        grass.fatal(_("Not enough data columns. (incorrect fs setting?)"))
     inf.close()
 
 
     grass.run_command('v.in.mapgen', flags = 'f' + do3D,
                       input = runfile, output = output)
 
-)
 
 if __name__ == "__main__":
     options, flags = grass.parser()



More information about the grass-commit mailing list