Hi list, 

I have a plugin that generate a shape in a temp directory using processing in 
the code (not in console). 
After using it, at the end of the plugin I try to delete the temp directory, 
but I get an error because the directory is used by another process. 
This is the step by step: 

- open plugin 
- create a temp directory 
- create a shape in the temp directory with processing, code: 
processing.runalg(...) 
- use the shape 
- try to delete the temp directory (with the shape inside) and I have an access 
error. 

I suppose the processing algorithm didn't close the file... 
I know I can try by using memory layer, but actually I didn't wan't to use this 
solution. 
What can I do? 

Thanks 
Stefano 






***************************** 
Stefano Masera 
Arpa Piemonte 
Via Pio VII, 9 - 10135 Torino 
www.arpa.piemonte.it 


_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to