Hi, I like to implement a centrally controlled QGIS environment for our workforce using startup.py. Thanks to the list for the very helpful feedback to my previous mails. In startup.py we also like to define and modify some variables containing path to i.e. scripts and models directories. We found the variable names SCRIPTS_FOLDERS and MODEL_FOLDER (Btw, why is it SCRIPTS_FOLDERS but MODEL_FOLDER)
Now: I tried to modify the value using
processing.ProcessingConfig.getSetting('SCRIPTS_FOLDERS') and
processing.ProcessingConfig.setSettingValue(...) via console. It works
perfectly.
When I put this in startup.py, unfortunately it does not work at all.
Interestingly, to define a context variable
QgsExpressionContextUtils.setGlobalVariable works in both, consol and script.
Any help is appreciated.
Best regards
Wolfgang
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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
