[Qgis-user] Run a python in the startup

Andrea Peri aperi2007 at gmail.com
Mon Apr 28 00:05:44 PDT 2014


Hi Nathan.

the first solution is not affordable because it need the user could be able
to do this simple (but not for all) action .

Instead the second option is what I'm searching.

Now I test if it is skip the security constraints

Many thx,

Andrea.




2014-04-28 8:41 GMT+02:00 Nathan Woodrow <madmanwoo at gmail.com>:

> 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
>>
>
>


-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140428/776f9c60/attachment.html>


More information about the Qgis-user mailing list