<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 6, 2015 at 3:10 AM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Mon, Jan 5, 2015 at 9:36 PM, <<a href="mailto:svn_grass@osgeo.org">svn_grass@osgeo.org</a>> wrote:<br>
><br>
> Author: hellik<br>
> Date: 2015-01-05 12:36:58 -0800 (Mon, 05 Jan 2015)<br>
> New Revision: 63958<br>
><br>
> Modified:<br>
> grass/trunk/scripts/v.to.lines/<a href="http://v.to.lines.py" target="_blank">v.to.lines.py</a><br>
> Log:<br>
> v.to.lines: strip mapset<br>
><br>
> Modified: grass/trunk/scripts/v.to.lines/<a href="http://v.to.lines.py" target="_blank">v.to.lines.py</a><br>
> ===================================================================<br>
> --- grass/trunk/scripts/v.to.lines/<a href="http://v.to.lines.py" target="_blank">v.to.lines.py</a> 2015-01-05 19:32:08 UTC (rev 63957)<br>
> +++ grass/trunk/scripts/v.to.lines/<a href="http://v.to.lines.py" target="_blank">v.to.lines.py</a> 2015-01-05 20:36:58 UTC (rev 63958)<br>
> @@ -47,7 +47,7 @@<br>
><br>
> def main():<br>
> # Get the options<br>
> - input = options["input"]<br>
> + input = options["input"].split('@')[0]<br>
> output = options["output"]<br>
> method = options["method"]<br>
> min_cat = None<br>
<br>
<br>
</span>Hi Helli,<br>
<br>
why is this needed? In most Python scripts I haven't seen it.<br>
If the same map name exists in different mapsets in the SEARCH_PATH,<br>
how would it pick the selected one?<br></blockquote><div><br></div><div>yes, it shouldn't be there like this. The motivation is probably that the input map name is used to construct temporary map names, so you want to avoid the mapset part there. But the mapset must be propagated into the called modules when it is an input map. I hopefully fixed that in <a href="http://trac.osgeo.org/grass/changeset/63965">http://trac.osgeo.org/grass/changeset/63965</a> and backported but I didn't really tested it.</div><div><br></div><div><br></div><div>Anna</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
thanks for hints,<br>
Markus<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</blockquote></div><br></div></div>