<div dir="ltr"><div><div><div>Hi Nathan.<br><br>the first solution is not affordable because it need the user could be able to do this simple (but not for all) action .<br><br></div>Instead the second option is what I'm searching.<br>
</div><br></div>Now I test if it is skip the security constraints<br><br>Many thx,<br><br>Andrea.<br><br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-28 8:41 GMT+02:00 Nathan Woodrow <span dir="ltr"><<a href="mailto:madmanwoo@gmail.com" target="_blank">madmanwoo@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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><span class="HOEnZb"><font color="#888888">

<div><br></div><div>- Nathan</div></font></span></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">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>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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><font color="#888888"><br><br></font></span></div><span><font color="#888888"><div>

-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>
-----------------<br>
</div></font></span></div></div></div></div>
<br></div></div><div class="">_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">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></div></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br>
</div>