<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="">Hi team,<div class=""><br class=""></div><div 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.</div><div class=""><br class=""></div><div class="">How would I best go about this?</div><div class=""><br class=""></div><div class="">Thanks a lot,</div><div class="">Michel</div><div class=""><div class="">
<div style="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;"><br class="Apple-interchange-newline">-------------------------</div><div style="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;">* Michel Wortmann</div><div style="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;">* 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="">* <a href="mailto:wortmann@pik-potsdam.de" class="">E-mail: wortmann@pik-potsdam.de</a><br class="">* Internet: <a href="http://www.pik-potsdam.de/members/wortmann" class="">www.pik-potsdam.de/members/wortmann</a><br class=""></div><div style="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;">-------------------------</div>
</div>

<br class=""></div></body></html>