Re: using configobj string interpolation and logging.config.dictConfig

2017-05-30 Thread Tim Williams
On Friday, May 26, 2017 at 12:26:13 PM UTC-4, Peter Otten wrote: > Tim Williams wrote: > > > I've spent too much time trying to track this down. I'll just hard-code my > > filename in my INI file. Maybe I'll get back to it, but I need to move on. > > The only alternative I see would be to build y

Re: using configobj string interpolation and logging.config.dictConfig

2017-05-26 Thread Peter Otten
Tim Williams wrote: > I've spent too much time trying to track this down. I'll just hard-code my > filename in my INI file. Maybe I'll get back to it, but I need to move on. The only alternative I see would be to build your own InterpolationEngine which understands some kind of escaping so that

Re: using configobj string interpolation and logging.config.dictConfig

2017-05-26 Thread Tim Williams
On Friday, May 26, 2017 at 8:37:38 AM UTC-4, Tim Williams wrote: > On Friday, May 26, 2017 at 8:32:19 AM UTC-4, Tim Williams wrote: > > On Thursday, May 25, 2017 at 9:43:40 PM UTC-4, Tim Williams wrote: > > > On Thursday, May 25, 2017 at 5:16:13 PM UTC-4, Peter Otten wrote: > > (snip) > > > > ... >

Re: using configobj string interpolation and logging.config.dictConfig

2017-05-26 Thread Tim Williams
On Friday, May 26, 2017 at 8:32:19 AM UTC-4, Tim Williams wrote: > On Thursday, May 25, 2017 at 9:43:40 PM UTC-4, Tim Williams wrote: > > On Thursday, May 25, 2017 at 5:16:13 PM UTC-4, Peter Otten wrote: > (snip) > > > ... > > > > > > How do you get > > > > > > > LogFile = '%(CaptureDrive)s%(Root

Re: using configobj string interpolation and logging.config.dictConfig

2017-05-26 Thread Tim Williams
On Thursday, May 25, 2017 at 9:43:40 PM UTC-4, Tim Williams wrote: > On Thursday, May 25, 2017 at 5:16:13 PM UTC-4, Peter Otten wrote: (snip) > > ... > > > > How do you get > > > > > LogFile = '%(CaptureDrive)s%(RootDir)s/test.log' > > > > to be interpolated while leaving > > > > > format = '%(

Re: using configobj string interpolation and logging.config.dictConfig

2017-05-25 Thread Tim Williams
On Thursday, May 25, 2017 at 5:16:13 PM UTC-4, Peter Otten wrote: > Tim Williams wrote: > > > On Wednesday, May 24, 2017 at 5:47:37 PM UTC-4, Peter Otten wrote: > >> Tim Williams wrote: > >> > >> > Just as a followup, if I use 'unrepr=True' in my ConfigObj, I don't > >> > have to convert the stri

Re: using configobj string interpolation and logging.config.dictConfig

2017-05-25 Thread Peter Otten
Tim Williams wrote: > On Wednesday, May 24, 2017 at 5:47:37 PM UTC-4, Peter Otten wrote: >> Tim Williams wrote: >> >> > Just as a followup, if I use 'unrepr=True' in my ConfigObj, I don't >> > have to convert the strings. >> >> I'd keep it simple and would use JSON... > > I looked at JSON at fi

using configobj string interpolation and logging.config.dictConfig (was Re: dictConfig: logging.StreamHandler object is not iterable.)

2017-05-25 Thread Tim Williams
On Wednesday, May 24, 2017 at 5:47:37 PM UTC-4, Peter Otten wrote: > Tim Williams wrote: > > > Just as a followup, if I use 'unrepr=True' in my ConfigObj, I don't have > > to convert the strings. > > I'd keep it simple and would use JSON... I looked at JSON at first, but went with configobj beca