Hi Fernando,

On Tuesday 24 July 2007 1:34:47 pm Fernando Perez wrote:
> Just so we save time, would you mind just coding up the failure as a test?

It is attached. Here is the output on my machine:

copying mplrc.conf to mplrc_copy.conf
loading from mplrc_copy.conf
Backend loaded from file:  Qt4Agg
Backend now changed to Cairo in tconfig object
writing file
reloading from mplrc_copy.conf
Backend reloaded from file:  Cairo
It should be Cairo
deleting mplrc_copy.conf
--------------------------------------------------------------------------------

creating RecursiveConfManager with no_mplrc.conf, which does not exist
calling RecursiveConfigManagers write() method
Here are the contents of no_mplrc.conf:


I might have expected to see the MPLConfig defaults
Backend now changed to:  Cairo
calling RecursiveConfigManagers write() method
Here are the new contents of no_mplrc.conf:


in this test, dsd finds that no_mplrc.conf is empty after both writes
I suggest that tconfig should either write to the file, or raise an
    error when the file does not exist
removing no_mplrc.conf
--------------------------------------------------------------------------------

moving mplrc.conf to mplrc.conf.off
copying mplrc2.conf to mplrc2_copy.conf
loading config from mplrc2_copy.conf, which includes mplrc.conf-
    but mplrc.conf does not exist
here are the contents of mplrc2_copy.conf, as loaded

# A hierarchical configuration
include = 'mplrc.conf'

Backend now changed to:  Cairo
writing to file
Here are the new contents of mplrc2_copy.conf:

# A hierarchical configuration
include = 'mplrc.conf'

I might have expected to see the backend.use here
maybe an error should be raised when a config file includes another
    config file that does not exist
moving mplrc.conf.off to mplrc.conf, deleting mplrc2_copy.conf
--------------------------------------------------------------------------------

Attachment: mpltest2.py
Description: application/python

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to