Following on from my previous question I cannot seem to get my function to run using script runner in QGIS. However, if i type then out in the Python Console then they work and load the layer in question.
Is it something to do with how i! am using the run_script function at the bottom of my code?