1

I can run a Python script that uses qgsVectorLayer, qgsRasterLayer and many functions like processing:runalg("qgis.difference"......) and os.popen("gdalwarp -q -cutline.......) but if I want to run it another time, I must close QGIS first and reload it (error: file locked because used by other programs...) I want to close files handlers but I don't know which ones. What can I do in this case?

Here is my some of my code enter image description here enter image description here

Namoat
  • 307
  • 1
  • 9

0 Answers0