|
From: Michael F. <fuz...@vo...> - 2008-11-19 20:28:12
|
Manjunath Sripadarao wrote:
> I found that the config file generated by python-configobj cannot be
> read by some programs
> like gdm, because of a quirk. Instead of generating lines like below
>
> command=X -br -audit :0
>
> python-config puts a space on either side of the '=' as in below
>
> command = X -br -audit :0
>
> Is there an option where I can eliminate this space ?
>
There's no built-in way to do this.
You can either filter every line of the output with line.replace(' = ',
'=') or add the functionality to ConfigObj itself (with tests and
documentation patches preferably).
Michael
> Thanks,
> Manju
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Configobj-develop mailing list
> Con...@li...
> https://lists.sourceforge.net/lists/listinfo/configobj-develop
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
|