From: Darren D. <dd...@co...> - 2007-07-24 19:49:47
|
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 -------------------------------------------------------------------------------- |