Skip to content
Permalink
Browse files
[sexante] change how temp files are deleted when exiting sextante
  • Loading branch information
volaya committed Mar 24, 2013
1 parent 47101f3 commit 67db5c994f685aa81e086d3dad25fbdf8bc02b50
Showing with 2 additions and 7 deletions.
  1. +2 −7 python/plugins/sextante/SextantePlugin.py
@@ -16,6 +16,7 @@
* *
***************************************************************************
"""
import shutil

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
@@ -100,13 +101,7 @@ def unload(self):
#delete temporary output files
folder = SextanteUtils.tempFolder()
if QDir(folder).exists():
for f in os.listdir(folder):
path = os.path.join(folder, f)
try:
os.unlink(path)
except:
#leave files that could not be deleted
pass
shutil.rmtree(folder, True)

def openToolbox(self):
if self.toolbox.isVisible():

0 comments on commit 67db5c9

Please sign in to comment.