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 <[email protected]>: > 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 <[email protected]> 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 >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/qgis-user >> > > -- ----------------- Andrea Peri . . . . . . . . . qwerty àèìòù -----------------
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
