Relative import error with py2exe : <p>I was trying to generate an executable for a simple Python script. My setup.py code looks like this:</p>

<pre><code>from distutils.core import setup
import py2exe
setup(console=["script.py"])
</code></pre>

<p>However, I am getting the error shown in the screenshot. Is there something I could try to fix this? I am using Windows 10.</p>

<p><a href="https://i.stack.imgur.com/LDbbL.png"><img src="https://i.stack.imgur.com/LDbbL.png" alt="enter image description here"></a></p>
