Python script executable with py2exe or pyinstaller
<p>My program contains 3 files (2x .py and .json). I would like to make single exe file. I tried py2exe with basic setup settings:</p>

<pre><code>from distutils.core import setup
import py2exe

setup(console = ['my_main_file.py'])
</code></pre>

<p>It doesn't work. When I run exe file from dist directory terminal window blinks for a second. I tried also pyinstller but result is similar. How can I make it?</p>