Cleanup the temporary directory

This commit is contained in:
Jakub Kadlčík
2016-08-18 17:24:13 +02:00
committed by Nils Philippsen
parent 2c90806aa7
commit 7d487b64fc

View File

@@ -33,6 +33,7 @@ import os
import subprocess as sp
import re
import tempfile
import shutil
from rida import log
import rida.utils
@@ -169,6 +170,7 @@ class SCM(object):
try:
td = tempfile.mkdtemp()
self.checkout(td)
shutil.rmtree(td)
return True
except:
return False