Friday, 6 December 2019

qgis - Is it possible to distribute custom python expressions along with .qgs file?


I have a QGIS project I'm working on with a few other users. The print composer and map tips use custom python expressions in the expression builder.


I know the expressions are store in .qgis2/python/expressions but I want to find a reasonable way to distribute and update those expressions so that when someone alters on it syncs to all the others. It seems odd to me that these can't be embedded somehow in the .qgis file (I understand there's security concerns, but a model similar to macros in microsoft products could be used...)




Answer



After much searching: no.


However, I did find an alternative. I set up symlinks on all the computers to link my custom expressions into the local expression folder from dropbox. This way they'll stay in sync.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...