How can I import a .pyc compiled python file and use it
<p>Im trying to figure out how to include a <code>.pyc</code> file in a python script.</p>

<p>For example my script is called:</p>

<pre><code>myscript.py
</code></pre>

<p>and the script I would like to include is called:</p>

<pre><code>included_script.pyc
</code></pre>

<p>So, do I just use:</p>

<pre><code>import included_script
</code></pre>

<p>And will that automatically execute the <code>included_script.pyc</code> ? Or is there something further I need to do, to get my <code>included_script.pyc</code> to run inside the <code>myscript.py</code>?</p>

<p>Do I need to pass the variables used in <code>included_script.pyc</code> also? If so, how might this be achieved?</p>