Skip to content

Commit

Permalink
[sexante] change how temp files are deleted when exiting sextante
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Mar 24, 2013
1 parent 47101f3 commit 67db5c9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions python/plugins/sextante/SextantePlugin.py
Expand Up @@ -16,6 +16,7 @@
* *
***************************************************************************
"""
import shutil

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 67db5c9

Please sign in to comment.