Hi JP,
the issue doesn't occur on my Windows 10 system running QGIS LTR 3.40.11.
The custom functions can be either saved in the QGIS project or in the
QGIS user profile (in the \python\expressions\ folder inside the current
QGIS user profile folder).
In the former case, the functions are automatically loaded when such
QGIS project is opened, while in the latter case, the functions are
automatically loaded when such QGIS user profile is used.
Normally there is no need to use any startup.py or __init__.py file.
Are you sure you are using the right QGIS project file or QGIS user
profile in which the functions were saved?
It would be useful if you indicated the exact QGIS version and Operative
System name and version used and exact step-by-step procedure you follow
to create and save the functions.
Regards.
Andrea
dejardinjp at gmail.com dejardinjp at gmail.com
Sat Oct 4 08:38:36 PDT 2025
I've a few Python expressions encoded through the function editor within the
field calculator.
As I save and load them, they appear in the "Custom" section, but if I
restart QGis the complete Custom section disappears from the panel and I've
to reload the expressions.
I tried to manage it with a startup.py or __init__.py, but it failed . Any
idea ? THX
_______________________________________________
QGIS-User mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user