Selaa lähdekoodia

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á 10 vuotta sitten
vanhempi
commit
dcde00e51d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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: