<meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin: 0px; text-indent: 0px;">I guess it's better if I send to you also the complete path list, <br></p><p style="margin: 0px; text-indent: 0px;">maybe it can be useful :)</p><p style="margin: 0px; text-indent: 0px;">
<br></p><p style="margin: 0px; text-indent: 0px;"><i>['/usr/local/share/qgis/python', '/home/brushtyler/.qgis/python', '/home/brushtyler/.qgis/python/plugins', '/usr/local/share/qgis/python/plugins', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages', u'/home/brushtyler/.qgis//python/plugins', '/usr/local/share/qgis/python/plugins/fTools/tools', '/usr/local/share/qgis/python/plugins/GdalTools/tools', '/usr/local/share/qgis/python/plugins/GdalTools']</i></p>
<br>Cheers.<br><br><div class="gmail_quote">2010/6/7 Giuseppe Sucameli <span dir="ltr"><<a href="mailto:brush.tyler@gmail.com">brush.tyler@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<p style="margin: 0px; text-indent: 0px;">This my paths:<br></p><p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;"><i>['/usr/local/share/qgis/python', '/home/brushtyler/.qgis/python', '/home/brushtyler/.qgis/python/plugins', '/usr/local/share/qgis/python/plugins', ... ]</i></p>
<p style="margin: 0px; text-indent: 0px;"></p><p style="margin: 0px; text-indent: 0px;">exactly as Jürgen saw.<br></p><br><br>BTW, utils.py at line 81 contains this:<br><i>plugindirs = [ <br> unicode(QgsApplication.pkgDataPath()) + "/python/plugins",<br>
unicode(QgsApplication.qgisSettingsDirPath()) + "/python/plugins"<br> ]</i><br>So it searches for plugins in /usr and after in ~/.qgis, but <br>add a plugin to the list only if not already present.<br><br>
Cheers.<div><div></div><div class="h5"><br>
<br><div class="gmail_quote">On Mon, Jun 7, 2010 at 12:02 PM, Borys Jurgiel <span dir="ltr"><<a href="mailto:borysiasty@aster.pl" target="_blank">borysiasty@aster.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dnia poniedzia³ek, 7 czerwca 2010 o 11:34:23 Jürgen E. Fischer napisa³(a):<br>
<div>> Hi Borys,<br>
><br>
> On Mon, 07. Jun 2010 at 11:09:21 +0200, Borys Jurgiel wrote:<br>
> > Seems they aren't really preffered. It works at mine, but Giuseppe always<br>
> > see the /usr ones. It's all about python paths, I'm right? I can't see<br>
> > any code preferring the ~/ ones in Qgis.<br>
><br>
> QgsPythonUtilsImpl::initPython() puts<br>
><br>
> pythonPath() [/usr/share/qgis/python]<br>
> ~/.qgis/python<br>
> ~/.qgis/python/plugins<br>
> pluginsPath() [/usr/share/qgis/python/plugins]<br>
><br>
> in front of the system's python path. I think that's Martin meant.<br>
> imports will prefer the user plugins.<br>
<br>
</div>Exactly. Giuseppe, can you check your paths?<br>
<div><br>
> But utils.py searches for available plugins first the system plugins and<br>
> then the user plugins, but AFAICS that shouldn't make a difference.<br>
<br>
</div>Exactly, it creates only a list of module names.<br>
<div><div></div><div>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div>-- <br><font color="#888888">Giuseppe Sucameli<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Giuseppe Sucameli<br>