Hi There I talked with Helmut, since he is an Win-GRASS expert user, and we have done this test with WinGRASS (Bash Scripts): r.out.xyz input=<whatever but it can be elevation> output=C:\delete\ai.txt
If I run this in WinGRASS text mode it places the data in file c:\deleteai.txt (it ignores the '\' If I run this in WinGRASS text mode but I place " " around the ouput it runs OK and places the data in c:\delete\ai.txt If I run this in WinGRASS wxPYTHON GUI it places the data in file c:\deleteai.txt If I run this in WinGRASS wxPYTHON GUI but I place " " around the the output path it does not run and it get this error: "C:Deleteai.txt": No such file or directory So this is a problem of WxPython in Windows when it gets the file paths and it sends to Scripts (Python or Bash Script) Any suggestion on how to solve this? Thanks Katrin 2011/3/14 katrin eggert <katrineggert1...@gmail.com> > Hello Glynn > First of all, thank you for replying to my emails... > > >> Python accepts '\'. GRASS typically just passes filenames to the OS, >> and Windows accepts '\'. >> > > Yes you are right. But for instance, if I try to run r.out.xyz GRASS > script (included in WiNGRASS standalone versions) like this: r.out.xyz > input=1990@climate output=C:\delete\ai.txt: > - In bash Script it does not place it in c:\delete\ folder but it places in > c:\ a file named deleteai.txt. This means that it's ignoring the '\' > - Then, I tried with r.out.xyz Python script adn the same happened. > > This happens not only with r.out.xyz but also with other Bash and Python > GRASS scripts.THe problem is that, when a user places a path to a file in > Scripts GUI (in Windows OS), when it presses the run, "inside the script", > the variable "loses" the '\'. > > THis is not specific this is for all GRASS Scripts (Bash and Python) that > uses filepaths in Windows OS. > Or am I analyzing this wrong? > > > Katrin Eggert >
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev