<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 18, 2016 at 3:40 PM, Helmut Kudrnovsky <span dir="ltr"><<a target="_blank" href="mailto:hellik@web.de">hellik@web.de</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span class="gmail-">><br>
> Is there any "best practice" example available?<br>
</span><a target="_blank" rel="noreferrer" href="http://lists.osgeo.org/mailman/listinfo/grass-dev"></a><br>
<br>
I've done it in this way :<br>
<br>
<a target="_blank" rel="noreferrer" href="https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.in.natura2000/v.in.natura2000.py#L151">https://trac.osgeo.org/grass/<wbr>browser/grass-addons/grass7/<wbr>vector/v.in.natura2000/v.in.<wbr>natura2000.py#L151</a><br>
<br>
accordingly an advice by Vaclav.<br>
<br>
Maybe there are some other ways to do it.</blockquote></div><br></div><div class="gmail_extra">Here is a example for more complicated case:<br><br><a href="https://trac.osgeo.org/grass/changeset/66482/grass-addons/grass7/vector/v.class.ml">https://trac.osgeo.org/grass/changeset/66482/grass-addons/grass7/vector/v.class.ml</a><br><br></div><div class="gmail_extra">But I don't know what is best practice, perhaps as simple solution as possible - import in main() after parser() will work for most of the short modules and dependencies.<br></div></div>