[Qgis-developer] PluginBuilder writes a wrong import inside .py
Richard Duivenvoorde
rdmailings at duif.net
Tue Nov 3 03:03:45 PST 2015
On 03-11-15 11:45, Anita Graser wrote:
> On Tue, Nov 3, 2015 at 10:49 AM, Geo DrinX <geodrinx at gmail.com
> <mailto: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
Hi Roberto,
I've had this issue also some time ago, but according to Gary it should
be fixed:
https://github.com/g-sherman/Qgis-Plugin-Builder/issues/34
Note off course that plugins build with an older version of the builder
still will have the problem.
If you still have this problem with a current plugin, please report back
at the issuelist at Github
Regards,
Richard Duivenvoorde
More information about the Qgis-developer
mailing list