Under Settings>Options>Layout>Layout Paths we can define Path(s) to search for extra print templates like shown here:
I intend to deploy an organization-wide standard path for print templates using PyQGIS in a startup-script but struggle in finding a method that does what I desire.
I cannot find something related in the QgsSettings()
, but I found a method
QgsApplication.instance().layoutTemplatePaths()
returning a list of the currently defined print template paths, but no equivalent method setLayoutTemplatePaths()
.
How may I set these print template paths using PyQGIS?