Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit74fc63d

Browse files
committed
Create directory specified by MPLCONFIGDIR if it does not exist.
svn path=/trunk/matplotlib/; revision=8609
1 parent914eb85 commit74fc63d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

‎CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2010-08-01 Create directory specified by MPLCONFIGDIR if it does
2+
not exist. - ADS
3+
14
2010-07-20 Return Qt4's default cursor when leaving the canvas - DSD
25

36
2010-07-06 Tagging for mpl 1.0 at r8502

‎lib/matplotlib/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,8 @@ def _get_configdir():
456456

457457
configdir=os.environ.get('MPLCONFIGDIR')
458458
ifconfigdirisnotNone:
459+
ifnotos.path.exists(configdir):
460+
os.makedirs(configdir)
459461
ifnot_is_writable_dir(configdir):
460462
raiseRuntimeError('Could not write to MPLCONFIGDIR="%s"'%configdir)
461463
returnconfigdir

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp