Hi Lukas,<br><br>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.<br>
<br>I developed a simple parser to read the parameter values correctly. <br><br>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. <br>
<br>For example:<br><br>AddModule "flite" "sd_flite" "flite.conf"<br>#AddModule "espeak-generic" "sd_generic" "espeak-generic.conf"<br><br>I have two questions:<br>
<ol><li>Would the dotconf project benefit from a generic python program that allows to read/edit parameters within a dotconf file?<br></li><li>How to modify the parameter values when multiple instances of the same parameter exist as describred above.</li>
</ol>For your reference I am attaching the pyDotconf project that I created. Please run pyDotconf_test.py to see whats happening.<br><br>Thanks and looking forward to your feedback!<br>Hemant<br>