[Qgis-user] Run a python in the startup

Nathan Woodrow madmanwoo at gmail.com
Sun Apr 27 23:41:29 PDT 2014


Hey Andrea,

QGIS can have extra statup logic defined in .qgis2\python\startup.py

or you can start qgis with the --code option

qgis --core myfile.py

- Nathan


On Mon, Apr 28, 2014 at 4:24 PM, Andrea Peri <aperi2007 at gmail.com> wrote:

> Hi,
>
> I need to run a python in qgis startup phase.
>
> I see the option to set the startup code in
> project.properties -> macros
>
> But this solution is not affordable for us, due to security settings.
>
> So searching another solution, I try if exist an option to say to qgis
> (using a parameter in the shell startup ) to run a python code.
>
> My goal is to produce a python code capable to load a project file and add
> some wms layer to the canvas.
>
> I hope this solution could run without the constraints of security
> settings.
>
> Thx,
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140428/4b6a06ed/attachment.html>


More information about the Qgis-user mailing list