Following the documentation for QGIS 3 startup script, I have placed a 'startup.py'
script in the following path:
C:\Users\Me\AppData\Roaming\QGIS\QGIS3\profiles\default\python\startup.py
But the script does not get executed. The script only contains the following line:
iface.messageBar().pushMessage("Error", "I'm sorry Dave, I'm afraid I can't do that", level=Qgis.Critical)
When QGIS loads, it should come up with an error message complaing about iface
not being recognised. But I receive nothing. I can set up the custom variable and point the path to the Python file but I want to use the startup script method.
Any ideas why?