Get a list from config.ini file
<p>In my config file I have something like that : </p>

<pre><code>[Section_1]
List=Column1,Column2,Column3,Column4
</code></pre>

<p>Now, I would like to process it in my main file as normal lists :</p>

<pre><code>    config = configparser.ConfigParser()
    config.read("configTab.ini")
    for index in range(len(List)):
                 sql=sql.replace(List[index],"replace("+List[index]+","'hidden'")")
</code></pre>

<p>Now when I read from configuration file "List" is a normal String.
What is the best approach to to it?</p>

<p>If I put a normal list variable in my main code it this way:</p>

<pre><code>List=['Column1','Column2','Column3','Column4']
</code></pre>

<p>Then it works fine, but I would like to get that from my configure file,</p>

<p>Thanks</p>