Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 906c61e

Browse files
committed
Merge pull request matplotlib#4591 from curufinwe/master
FIX: _create_tmp_config_dir() "mkdirs" the returned dir
2 parents 821a151 + 0f8305c commit 906c61e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ def _create_tmp_config_dir():
537537
"""
538538
import getpass
539539
import tempfile
540+
from matplotlib.cbook import mkdirs
540541

541542
try:
542543
tempdir = tempfile.gettempdir()
@@ -547,6 +548,8 @@ def _create_tmp_config_dir():
547548
tempdir = os.path.join(tempdir, 'matplotlib-%s' % getpass.getuser())
548549
os.environ['MPLCONFIGDIR'] = tempdir
549550

551+
mkdirs(tempdir)
552+
550553
return tempdir
551554

552555

0 commit comments

Comments
 (0)