Explorar o código

r3.in.xyz: fix this script on Windows

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@62057 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová %!s(int64=11) %!d(string=hai) anos
pai
achega
dcde00e51d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/r3.in.xyz/r3.in.xyz.py

+ 1 - 1
scripts/r3.in.xyz/r3.in.xyz.py

@@ -311,7 +311,7 @@ def main():
 
     #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: