<div dir="ltr"><div>Hi,<br><br></div>are you sure that you aren't importing the standard python test module?<br><p style="margin:0px;text-indent:0px"><module 'test' from '/usr/lib/python2.7/test/__init__.pyc'></p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">Try renaming from test.py to mytest.py</p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px"><br></p></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-07 11:47 GMT+02:00 Luca Lanteri <span dir="ltr"><<a href="mailto:lklanteri@gmail.com" target="_blank">lklanteri@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I try to load a custom module in qgis python console but without success.</div><div style="font-size:12.8px"><span style="font-size:12.8px">I don't understand what I miss.</span></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I put my python module into project folder (file is named test.py)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">the module contain a function like this;</div><div style="font-size:12.8px">def pr():</div><div style="font-size:12.8px">    print("hello")</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">when from Python console I've imported the module with "import test" I didn' have any error and qgis find the module but I can't access to my custom functions.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">any hints ?</div><div style="font-size:12.8px"><span style="font-size:12.8px">Thank in advance</span></div><span class="HOEnZb"><font color="#888888"><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px"><span style="font-size:12.8px">Luca</span></div><div style="font-size:12.8px"><span style="font-size:12.8px"> </span><br></div></font></span></div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div>