ConfigParser - print config.sections() returns []
<p>I'm trying to use a <code>ConfigParser</code> module to parse an <code>*.ini</code> file. The problem is that when I try to print <code>sections</code> or whatever, it returns empty list <code>[]</code>.</p>

<p><strong>config.ini</strong></p>

<pre><code>[SERVER]
host=localhost
port=9999
max_clients=5
[REGULAR_EXPRESSIONS]
regular_expressions_file_path=commands/commands_dict
</code></pre>

<p><strong>config.py</strong></p>

<pre><code># -*- coding: utf-8 -*- 
import ConfigParser

config = ConfigParser.SafeConfigParser()
config.read("config.ini")
print config.sections()
</code></pre>

<blockquote>
  <p>[]</p>
</blockquote>

<p>Do you know where is the problem?</p>

<p>EDIT: Here is a screen of my structure:<a href="https://i.stack.imgur.com/JxMPf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JxMPf.png" alt="enter image description here"></a></p>