[Qgis-developer] PluginBuilder writes a wrong import inside .py

Anita Graser anitagraser at gmx.at
Tue Nov 3 02:45:26 PST 2015


On Tue, Nov 3, 2015 at 10:49 AM, Geo DrinX <geodrinx at gmail.com> wrote:

> Hello all,
>
>
> probably you just know, but I found that "PluginBuilder"  plugin for QGIS
> writes at line 26  of the main  .py  file the following code:
>
>
> import resources
>
>
> I think this is wrong,  because in run it returns a python error.
>
>
> The correct code is:
>
>
> import resources_rc
>

​Hi Roberto,
Afaik, the plugin builder code is not wrong. You just have to adjust the
name of the output file when compiling the resources.
Best wishes,
Anita​





>
>
> I hope this helps to create new and useful plugins .
>
>
> Thank you in advance for attention
>
> Roberto
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20151103/8abc9a9c/attachment.html>


More information about the Qgis-developer mailing list