[Qgis-user] Loading custom-functions in own projekt

Nyall Dawson nyall.dawson at gmail.com
Mon Mar 18 17:19:16 PDT 2019


On Mon, 18 Mar 2019 at 23:15, Kai Behncke <Kai.Behncke at ibbenbueren.de> wrote:
>
> Dear users,
>
> I use QGIS 3.6.
> I have created a couple of custom functions in my Project. But each time
> I do a restart of Quantum GIS (at the next morning or so...), I first need to activate these functions by the "load and save-Button" in the function-editor.
> Is there a way to integrate my custom-functions in my project "directly" when I start my project?
> Is it possible to load the file "my_custom_functions.py" somewhere in my project so that I can use these functions each time I reopen my project
> (without activating these functions by clicking the the "load and save-Button" in the function-editor)?
>

Just to follow up on your answer: if you want your functions available
anywhere a project is opened (as opposed to just on the one computer
you've written the expressions on), you need to put the expression
function declaration inside your project macros.

Nyall


More information about the Qgis-user mailing list