<div dir="ltr">Hey Andrea,<div><br>QGIS can have extra statup logic defined in .qgis2\python\startup.py</div><div><br></div><div>or you can start qgis with the --code option</div><div><br></div><div>qgis --core myfile.py</div>

<div><br></div><div>- Nathan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 28, 2014 at 4:24 PM, Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br>I need to run a python in qgis startup phase.<br><br></div>I see the option to set the startup code in <br>

</div>project.properties -> macros<br></div><br>But this solution is not affordable for us, due to security settings.<div>
<div><br><div>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.<br><br></div><div>My goal is to produce a python code capable to load a project file and add some wms layer to the canvas.<br>


<br></div><div>I hope this solution could run without the constraints of security settings.<br></div><div><br></div><div><div>Thx,<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>

-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>
-----------------<br>
</div></font></span></div></div></div></div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>