Custom Script Directory?

You can add scripts to a “scripts” folder inside the folder returned by RSettings.getDataLocation().

Here that would be:
C:/Users/andrew/AppData/Local/QCAD/QCAD/scripts