<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Great, thanks Stefan!<div class="">I find those standard Makefiles deserve a mention in the GRASS and Python documentation somewhere.<div class=""><br class=""></div><div class="">Michel<br class=""><div class="">
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On 23 Oct 2018, at 11:25, Stefan Blumentrath <<a href="mailto:Stefan.Blumentrath@nina.no" class="">Stefan.Blumentrath@nina.no</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="">Hi Michael,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-GB" class="">Have a look at e.g.<a href="https://github.com/pesekon2/GRASS-GIS-SOS-tools/tree/master/sos" style="color: purple; text-decoration: underline;" class="">https://github.com/pesekon2/GRASS-GIS-SOS-tools/tree/master/sos</a><span class="Apple-converted-space"> </span>or<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-GB" class=""><a href="https://trac.osgeo.org/grass/browser/grass-addons/grass7?order=name#gui/wxpython/wx.metadata" style="color: purple; text-decoration: underline;" class="">https://trac.osgeo.org/grass/browser/grass-addons/grass7?order=name#gui/wxpython/wx.metadata</a><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-GB" class="">for inspiration regarding addon-libraries (in Python).<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-GB" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-GB" class="">Kind regards,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-GB" class="">Stefan<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-GB" class=""><o:p class=""> </o:p></span></div><div class=""><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0cm 0cm;" class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><b class=""><span lang="EN-US" class="">From:</span></b><span lang="EN-US" class=""><span class="Apple-converted-space"> </span>grass-dev <<a href="mailto:grass-dev-bounces@lists.osgeo.org" class="">grass-dev-bounces@lists.osgeo.org</a>><span class="Apple-converted-space"> </span><b class="">On Behalf Of<span class="Apple-converted-space"> </span></b>Michel Wortmann<br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>tirsdag 23. oktober 2018 11:20<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>grass-dev <<a href="mailto:grass-dev@lists.osgeo.org" class="">grass-dev@lists.osgeo.org</a>><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>[GRASS-dev] Python script dependencies<o:p class=""></o:p></span></div></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Hi team,<o:p class=""></o:p></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">I have some python modules developed in a toolbox and install them all using g.extension with the SUBDIRS Makefile variable. I frequently feel like I need to share code between those modules, i.e. I would like to create a utility module that can be imported by all other modules in the toolbox. I managed to install the module in the .grass7/addons/script directory, but the installation of the other modules fails because they cant import the utilities yet. Installing it like any other module seems to bring all sorts of problems including the requirement to include the toolbox name that has dots in them preventing a python import.<o:p class=""></o:p></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">How would I best go about this?<o:p class=""></o:p></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Thanks a lot,<o:p class=""></o:p></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Michel<o:p class=""></o:p></div></div><div class=""><div class=""><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 9pt; font-family: Helvetica, sans-serif;" class=""><br class="">-------------------------<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 9pt; font-family: Helvetica, sans-serif;" class="">* Michel Wortmann<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 9pt; font-family: Helvetica, sans-serif;" class="">* Post-doc<br class="">* Potsdam Institute for Climate Impact Research (PIK)<br class="">* Telegrafenberg A62, 14473 Potsdam, Germany<br class="">* Tel.: 0049 (0)331 288 2546<br class="">*<span class="Apple-converted-space"> </span><a href="mailto:wortmann@pik-potsdam.de" style="color: purple; text-decoration: underline;" class="">E-mail: wortmann@pik-potsdam.de</a><br class="">* Internet: <a href="http://www.pik-potsdam.de/members/wortmann" style="color: purple; text-decoration: underline;" class="">www.pik-potsdam.de/members/wortmann</a><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 9pt; font-family: Helvetica, sans-serif;" class="">-------------------------</span></div></div></div></div></div></div></blockquote></div><br class=""></div></div></body></html>