Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5fb352 + 9f8b0f5 commit 045c951Copy full SHA for 045c951
lib/matplotlib/__init__.py
@@ -104,6 +104,7 @@
104
105
import six
106
107
+import atexit
108
from collections import MutableMapping
109
import contextlib
110
import distutils.version
@@ -116,6 +117,7 @@
116
117
import logging
118
import os
119
import re
120
+import shutil
121
import sys
122
import tempfile
123
import warnings
@@ -605,6 +607,7 @@ def _create_tmp_config_dir():
605
607
"""
606
608
configdir = os.environ['MPLCONFIGDIR'] = (
609
tempfile.mkdtemp(prefix='matplotlib-'))
610
+ atexit.register(shutil.rmtree, configdir)
611
return configdir
612
613
0 commit comments