Hello Glynn<div><br>About this, What can i do to fix this? Or isn&#39;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">&lt;<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>&gt;</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>
&gt; &gt; &gt; I&#39;m running a Python script in WinGRASS6.4 but when I insert as the input<br>
&gt; &gt; &gt; C:\Data\L5216065_06520070405_B70.TIF<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; inside Python Script, the input is:<br>
&gt; &gt; &gt; C:DataL5216065_06520070405_B10.TIF<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I realized that, if I, by-hand, i change the \ by / it runs ok.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; is it possible to have an automatic process to change this instead of<br>
&gt; &gt; having<br>
&gt; &gt; &gt; the users doing this by-hand?<br>
&gt; &gt;<br>
&gt; &gt; How are you running the script? If you run it via bash, any<br>
&gt; &gt; backslashes will be interpreted before the script is executed. There<br>
&gt; &gt; isn&#39;t anything the script can do about this.<br>
&gt;<br>
</div><div class="im">&gt; I&#39;m running via WxGUI&#39;s modules. I use the browse button to find the file<br>
&gt; and it automatically places the path tot the file. Is this via Bash?<br>
<br>
</div>No, but wxGUI&#39;s &quot;command prompt&quot; is using shlex.split(), which mimics<br>
a typical Unix shell:<br>
<br>
        &gt;&gt;&gt; shlex.split(r&#39;C:\Data\L5216065_06520070405_B70.TIF&#39;)<br>
        [&#39;C:DataL5216065_06520070405_B70.TIF&#39;]<br>
<br>
I suspect that it should have &quot;posix = False&quot; on Windows:<br>
<br>
        &gt;&gt;&gt; shlex.split(r&#39;C:\Data\L5216065_06520070405_B70.TIF&#39;, posix = False)<br>
        [&#39;C:\\Data\\L5216065_06520070405_B70.TIF&#39;]<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Glynn Clements &lt;<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>&gt;<br>
</div></div></blockquote></div><br></div>