FWIW, I wrote a library/program called martINI for these ends that several of my software rely on:
https://svn.openplans.org/svn/standalone/martINI/ However, there are at least half a dozen python solutions for reading + writing .ini files programmatically. Jeff On Tue, Aug 11, 2009 at 01:03:03AM -0700, alind wrote: > > After some more searching I found a library python-configobj > http://www.voidspace.org.uk/python/configobj.html#downloading > Am I suppose to use some other thing. > IMHO this will work fine for me. > Thanks. > > On Aug 11, 12:42 pm, alind sharma <[email protected]> wrote: > > I want to edit trac.ini using python/shell. Whats the best way to do it. > > Want something like I should be able to read trac.ini into some sort of > > dictionary/list, check if some option is present in the dictionary, and > > edit its value. There are some options that I want to add like > > track.hg* = enabled, > > webauth plugin = disbaled > > webadming = enabled > > etc. If something like this is already present then it will be fine, > > otherwise i will write one myself. Can anybody guide me towards the best > > way of achieving this. Thanks in advance. > > > > Alind Sharma > > > > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. > > Download Now!http://messenger.yahoo.com/download.php > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
