Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 906c61e

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

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Collapse file

‎lib/matplotlib/__init__.py‎

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.