|
From: Michael F. <fuz...@vo...> - 2007-09-27 21:38:49
|
Stef Mientki wrote:
>>>>
>>>>
>>>>
>>> Thanks that works ok.
>>> So why doesn't
>>> ini.list_values = False
>>> this work ?
>>>
>>>
>>>
>> Because by then ConfigObj has *already* read the values in. Changing the
>> settings afterwards only affects how they are written back out.
>>
>>
>>
> Thanks Michael, that explains.
>
> Another question: is it possible to force the normal windows end-of-line
> (CR+LF),
> when writing to the config file ?
>
Hmmm... doesn't that happen automatically on Windows?
ConfigObj does expose a 'newlines' attribute ('\r\n', '\n', or '\r'). It
does however go to great lengths to preserve line endings in a config
file it has read - or to use the native ones for the platform.
Michael
http://www.manning.com/foord
> cheers,
> Stef
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Configobj-develop mailing list
> Con...@li...
> https://lists.sourceforge.net/lists/listinfo/configobj-develop
>
>
|