don't try to remove tmp folder if it's already been removed

This commit is contained in:
Damien Elmes 2019-12-16 10:07:20 +10:00
parent ac57174fc0
commit a2c9b160ca

View file

@ -296,6 +296,7 @@ def tmpdir():
global _tmpdir
if not _tmpdir:
def cleanup():
if os.path.exists(_tmpdir):
shutil.rmtree(_tmpdir)
import atexit
atexit.register(cleanup)