How do I access a variable that's defined within an imported file? : <p>My windows batch file:</p>

<pre><code>python test.py
pause
</code></pre>

<p>test.py:</p>

<pre><code>import test_import
print(greeting)
</code></pre>

<p>test_import.py:</p>

<pre><code>greeting='hello world'
</code></pre>

<p>This isn't working. I'm getting an error message, saying 'greeting' is not defined. I'd like to show you the output, but I'm having trouble with that too.</p>

<p>What do I need to change withint test_import.py, so the variable is accessible within the main module?</p>
