8000 _create_tmp_config_dir() "mkdirs" the returned dir by curufinwe · Pull Request #4591 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

_create_tmp_config_dir() "mkdirs" the returned dir #4591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 7, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed exception handling in _create_tmp_config_dir
  • Loading branch information
curufinwe committed Jul 6, 2015
commit 0f8305c8d5fc0c81caf9aeb620f98f78f77dffef
5 changes: 1 addition & 4 deletions lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,10 +548,7 @@ def _create_tmp_config_dir():
tempdir = os.path.join(tempdir, 'matplotlib-%s' % getpass.getuser())
os.environ['MPLCONFIGDIR'] = tempdir

try:
mkdirs(tempdir)
except OSError:
pass
mkdirs(tempdir)

return tempdir

Expand Down
0