I am packing my code to exe now. Successfully created setup.py , built it but my executable file opens and then closes. I noticed some text when it opens. What should I do so it doesn't close and I can read the error?
setup.py
import cx_Freeze
executables = [cx_Freeze.Executable('main.py')]
cx_Freeze.setup(
name='Castle game',
options={'build_exe': {'packages': ['pygame'],
'includes': ['random'],
'include_files': [...]}},
executables=executables
)
There are plenty of files, so I put '...' instead of them.