Qcad

scripts folder

source : https://forum.qcad.org/t/custom-script-directory/5962/3

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