[Qgis-developer] Re: GdalTools versions
Giuseppe Sucameli
brush.tyler at gmail.com
Mon Jun 7 07:46:54 EDT 2010
I guess it's better if I send to you also the complete path list,
maybe it can be useful :)
*['/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']*
Cheers.
2010/6/7 Giuseppe Sucameli <brush.tyler at gmail.com>
> This my paths:
>
> *['/usr/local/share/qgis/python', '/home/brushtyler/.qgis/python',
> '/home/brushtyler/.qgis/python/plugins',
> '/usr/local/share/qgis/python/plugins', ... ]*
>
> exactly as Jürgen saw.
>
>
> BTW, utils.py at line 81 contains this:
> *plugindirs = [
> unicode(QgsApplication.pkgDataPath()) + "/python/plugins",
> unicode(QgsApplication.qgisSettingsDirPath()) + "/python/plugins"
> ]*
> So it searches for plugins in /usr and after in ~/.qgis, but
> add a plugin to the list only if not already present.
>
> Cheers.
>
>
> On Mon, Jun 7, 2010 at 12:02 PM, Borys Jurgiel <borysiasty at aster.pl>wrote:
>
>> Dnia poniedziałek, 7 czerwca 2010 o 11:34:23 Jürgen E. Fischer napisał(a):
>> > Hi Borys,
>> >
>> > On Mon, 07. Jun 2010 at 11:09:21 +0200, Borys Jurgiel wrote:
>> > > Seems they aren't really preffered. It works at mine, but Giuseppe
>> always
>> > > see the /usr ones. It's all about python paths, I'm right? I can't see
>> > > any code preferring the ~/ ones in Qgis.
>> >
>> > QgsPythonUtilsImpl::initPython() puts
>> >
>> > pythonPath() [/usr/share/qgis/python]
>> > ~/.qgis/python
>> > ~/.qgis/python/plugins
>> > pluginsPath() [/usr/share/qgis/python/plugins]
>> >
>> > in front of the system's python path. I think that's Martin meant.
>> > imports will prefer the user plugins.
>>
>> Exactly. Giuseppe, can you check your paths?
>>
>> > But utils.py searches for available plugins first the system plugins and
>> > then the user plugins, but AFAICS that shouldn't make a difference.
>>
>> Exactly, it creates only a list of module names.
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>
>
>
> --
> Giuseppe Sucameli
>
--
Giuseppe Sucameli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20100607/67eeab3f/attachment.html
More information about the Qgis-developer
mailing list