@@ -88,7 +88,7 @@ class ps(TConfig):
8888 fonttype = T .Trait (3 , 42 )
8989
9090 class distiller (TConfig ):
91- use = T .Trait (None , None , 'ghostscript' , 'xpdf' )
91+ use = T .Trait (None , None , 'ghostscript' , 'xpdf' , False )
9292 resolution = T .Float (6000 )
9393
9494 class pdf (TConfig ):
@@ -267,7 +267,7 @@ class savefig(TConfig):
267267 dpi = T .Float (100 )
268268 facecolor = T .Trait ('white' , mplT .ColorHandler ())
269269 edgecolor = T .Trait ('white' , mplT .ColorHandler ())
270- orientation = T .Trait ('portrait' , 'portrait' , 'landscape' )
270+ orientation = T .Trait ('portrait' , 'portrait' , 'landscape' )
271271
272272 class verbose (TConfig ):
273273 level = T .Trait ('silent' , 'silent' , 'helpful' , 'debug' , 'debug-annoying' )
@@ -457,13 +457,19 @@ def has_key(self, val):
457457 return self .tconfig_map .has_key (val )
458458
459459
460- config_file = cutils .get_config_file (tconfig = True )
461460old_config_file = cutils .get_config_file (tconfig = False )
461+ old_config_path = os .path .split (old_config_file )[0 ]
462+ config_file = os .path .join (old_config_path , 'matplotlib.conf' )
463+
462464if os .path .exists (old_config_file ) and not os .path .exists (config_file ):
465+ print 'convert!'
463466 CONVERT = True
464- else : CONVERT = False
467+ else :
468+ config_file = cutils .get_config_file (tconfig = True )
469+ CONVERT = False
470+
465471configManager = TConfigManager (MPLConfig ,
466- cutils . get_config_file ( tconfig = True ) ,
472+ config_file ,
467473 filePriority = True )
468474mplConfig = configManager .tconf
469475mplConfigDefault = MPLConfig ()
0 commit comments