How to get only the values from the file while parsing it?
<p>I am parsing a config file I would like to get only the values which are file paths in the file </p>

<p>for example the config file has </p>

<pre><code>apache.access =  /var/log/apache2/access.log
apache.errors = /var/log/apache2/errors.log
</code></pre>

<p>I would like to get only '/var/log/apache2/access.log' and '/var/log/apache2/errors.log' from the </p>

<pre><code>COMMENT_CHAR = '#'
OPTION_CHAR =  '='



def parse_config(filename):
    options = {}
    f = open(filename)
    for line in f:
        if COMMENT_CHAR in line:
           line, comment = line.split(COMMENT_CHAR, 1)
        if OPTION_CHAR in line:
            option, value = line.split(OPTION_CHAR, 1)
            option = option.strip()
            value = value.strip()
            options[option] = value
    f.close()
    return options 
</code></pre>

<p>I tried this but it gives all the options and values in the file</p>

<p>apache.access :  /var/log/apache2/access.log</p>

<p>apache.errors : /var/log/apache2/errors.log</p>
