This has me stumped. For some reason, I can no longer run a function from a project macro even though macros are enabled (from Settings > Options > General > Enable macros > Always).

Just a simple test like the following fails:

Macro test

Same applies if I make test_print() a function on its own. I.e.:

def openProject():

def test_print():
    print 'It works'


Any ideas? I'm using QGIS 2.14.1-Essen for Windows 7.

1 Answer 1


Re-tested this on QGIS 2.14 LTR and it works fine so it was perhaps a minor bug.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.