[GRASS-SVN] r62057 - grass/trunk/scripts/r3.in.xyz
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 23 11:20:40 PDT 2014
Author: annakrat
Date: 2014-09-23 11:20:40 -0700 (Tue, 23 Sep 2014)
New Revision: 62057
Modified:
grass/trunk/scripts/r3.in.xyz/r3.in.xyz.py
Log:
r3.in.xyz: fix this script on Windows
Modified: grass/trunk/scripts/r3.in.xyz/r3.in.xyz.py
===================================================================
--- grass/trunk/scripts/r3.in.xyz/r3.in.xyz.py 2014-09-23 15:37:48 UTC (rev 62056)
+++ grass/trunk/scripts/r3.in.xyz/r3.in.xyz.py 2014-09-23 18:20:40 UTC (rev 62057)
@@ -311,7 +311,7 @@
#input order: lower most strata first
slices = grass.read_command('g.list', type = 'rast', sep = ',',
- pattern = 'tmp.r3xyz.%d.*' % os.getpid()).rstrip('\n')
+ pattern = 'tmp.r3xyz.%d.*' % os.getpid()).rstrip(os.linesep)
grass.debug(slices)
if grass.run_command('r.to.rast3', input = slices, output = output) is 0:
More information about the grass-commit
mailing list