Import/Export based on conditions
<p>Imagine a <code>settings.py</code>:</p>

<pre><code>if condition:
  A_SETTING = True
else:
  A_SETTING = False
</code></pre>

<p>how can I have another file just import it and get the setting based on the condition:</p>

<pre><code>import settings

use_setting_somehow(settings.A_SETTING)
</code></pre>

<p><strong>UPDATE:</strong> Ignore this please. I had a mistake in my function.</p>
