From: <as...@us...> - 2010-08-01 06:38:41
|
Revision: 8609 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8609&view=rev Author: astraw Date: 2010-08-01 06:38:34 +0000 (Sun, 01 Aug 2010) Log Message: ----------- Create directory specified by MPLCONFIGDIR if it does not exist. Modified Paths: -------------- trunk/matplotlib/CHANGELOG trunk/matplotlib/lib/matplotlib/__init__.py Modified: trunk/matplotlib/CHANGELOG =================================================================== --- trunk/matplotlib/CHANGELOG 2010-07-31 18:41:39 UTC (rev 8608) +++ trunk/matplotlib/CHANGELOG 2010-08-01 06:38:34 UTC (rev 8609) @@ -1,3 +1,6 @@ +2010-08-01 Create directory specified by MPLCONFIGDIR if it does + not exist. - ADS + 2010-07-20 Return Qt4's default cursor when leaving the canvas - DSD 2010-07-06 Tagging for mpl 1.0 at r8502 Modified: trunk/matplotlib/lib/matplotlib/__init__.py =================================================================== --- trunk/matplotlib/lib/matplotlib/__init__.py 2010-07-31 18:41:39 UTC (rev 8608) +++ trunk/matplotlib/lib/matplotlib/__init__.py 2010-08-01 06:38:34 UTC (rev 8609) @@ -456,6 +456,8 @@ configdir = os.environ.get('MPLCONFIGDIR') if configdir is not None: + if not os.path.exists(configdir): + os.makedirs(configdir) if not _is_writable_dir(configdir): raise RuntimeError('Could not write to MPLCONFIGDIR="%s"'%configdir) return configdir This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |