Hello Glynn<div><br>About this, What can i do to fix this? Or isn't anything I can do?</div><div>Thanks</div><div>Luis<br><br><div class="gmail_quote">On Fri, Oct 15, 2010 at 6:08 PM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
[CC to grass-dev]<br>
<div class="im"><br>
Luis Lisboa wrote:<br>
<br>
> > > I'm running a Python script in WinGRASS6.4 but when I insert as the input<br>
> > > C:\Data\L5216065_06520070405_B70.TIF<br>
> > ><br>
> > > inside Python Script, the input is:<br>
> > > C:DataL5216065_06520070405_B10.TIF<br>
> > ><br>
> > > I realized that, if I, by-hand, i change the \ by / it runs ok.<br>
> > ><br>
> > > is it possible to have an automatic process to change this instead of<br>
> > having<br>
> > > the users doing this by-hand?<br>
> ><br>
> > How are you running the script? If you run it via bash, any<br>
> > backslashes will be interpreted before the script is executed. There<br>
> > isn't anything the script can do about this.<br>
><br>
</div><div class="im">> I'm running via WxGUI's modules. I use the browse button to find the file<br>
> and it automatically places the path tot the file. Is this via Bash?<br>
<br>
</div>No, but wxGUI's "command prompt" is using shlex.split(), which mimics<br>
a typical Unix shell:<br>
<br>
>>> shlex.split(r'C:\Data\L5216065_06520070405_B70.TIF')<br>
['C:DataL5216065_06520070405_B70.TIF']<br>
<br>
I suspect that it should have "posix = False" on Windows:<br>
<br>
>>> shlex.split(r'C:\Data\L5216065_06520070405_B70.TIF', posix = False)<br>
['C:\\Data\\L5216065_06520070405_B70.TIF']<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</div></div></blockquote></div><br></div>