I am delighted to say that I have a small amount of code in #Moodle 5.2 allowing question behaviour plugins to use a settings.php file.
This would not have happened without huge help from Luca Bösch of Bern University of Applied Science who is a massive contributor to the Moodle project.
