<div dir="ltr">Dear QGIS developers,<div><br></div><div>Currently, I am trying to create a Docker image based on QGIS official docker image to run a custom processing model. I am able to run the existing processing model by using a python script.</div><div><br></div><div>Unfortunately, for a custom model, I need to register the model first (similar to adding a new model in QGIS toolbox) before I can use it. I try some ways to do it:</div><div><ol><li>Trying to find Python API to do it. I couldn't find it (perhaps I missed it)</li><li>Trying to add/copy manually the model file to the model directory. Unfortunately, in the container doesn't even have any profile directory.</li><li>I tried to find the model directory path, but I can't find it from QSettings (it returns empty setting with <i>QSettings.allKeys()</i>)</li><li>I tried to manually create the directories based on my machine model directory location, but it's not working also.</li></ol><div>Any suggestions for this problem? A Python API to add/register the model would be a perfect solution.</div></div><div><br></div><div>Thanks</div><div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Ismail Sunni<br><div><a href="http://ismailsunni.wordpress.com" target="_blank">ismailsunni.wordpress.com</a></div></div></div></div>