title: Comma-separated values in ini config files
body: <p>How do i take input as a comma separated value in <code>ini</code> files when I'm parsing it with python in Linux. </p>
  
  <p>Below you'll find the <code>MWE</code></p>
  
  <pre><code>#!/usr/bin/env python
  
  import configparser
  
  def parse_config(file):
          global config_dictionary
          config_dictionary={}
          config=configparser.ConfigParser()
          config.read(file)
          for section in config.sections():
                  config_dictionary[section] = {}
                  for option in config.options(section):
                          config_dictionary[section][option] = config.get(section, option)
          return config_dictionary
  
  def main():
          config_path = 'test.ini'
          config_dict=parse_config(config_path)
          mapping = config_dict['Options']['initialassignment']
          mapping = list(mapping)
          print mapping
  
  if __name__ == "__main__":
          main()
  </code></pre>
  
  <p>and the <code>test.ini</code> file is</p>
  
  <pre><code>[Options]
  initialAssignment=0,1,2,3
  </code></pre>