Hi Lukas, I am working on a project to integrate speech-dispatcher (which uses dot.conf for its configuration files) into the olpc sugar environment. I need to modify the configuration files directly from a python program, and unfortunately python bindings of dotconf are not available.
I developed a simple parser to read the parameter values correctly. I am, however, having trouble deciding how to write back (edit the value of a particular parameter) to the file - There are times when multiple instances of the same parameter exist. For example: AddModule "flite" "sd_flite" "flite.conf" #AddModule "espeak-generic" "sd_generic" "espeak-generic.conf" I have two questions: 1. Would the dotconf project benefit from a generic python program that allows to read/edit parameters within a dotconf file? 2. How to modify the parameter values when multiple instances of the same parameter exist as describred above. For your reference I am attaching the pyDotconf project that I created. Please run pyDotconf_test.py to see whats happening. Thanks and looking forward to your feedback! Hemant
pyDotconf.tar.gz
Description: GNU Zip compressed data
_______________________________________________ Devel mailing list [email protected] http://lists.laptop.org/listinfo/devel
