Popular recipes by Frithiof andreas Jensen http://code.activestate.com/recipes/users/4166085/2008-08-02T12:55:21-07:00ActiveState Code RecipesPython config file parser (Python) 2008-08-02T12:55:21-07:00Frithiof andreas Jensenhttp://code.activestate.com/recipes/users/4166085/http://code.activestate.com/recipes/576404-python-config-file-parser/ <p style="color: grey"> Python recipe 576404 by <a href="/recipes/users/4166085/">Frithiof andreas Jensen</a> . </p> <p>Config - reads a configuration file.</p> <p>This module parses a configuration file using a restricted Python syntax. The Python tokenizer/parser is used to read the file, unwanted expressions are removed from the parser output before the result is compiled and executed. The initialised configuration settings are returned in a dict.</p>