My program runs perfectly when launched through terminal or the PythonLauncher. My program utilizes both a GUI written through pyside and a terminal console. When I wrap my program using py2app, running the produced .app file yields only the GUI, not the terminal shell. My program, therefore, does not work, because it is unable to call sub-processes in the terminal shell without the terminal shell being open.
Any ideas as to how I can have both the terminal shell and the GUI open? I assume this is an error with my setup.py or my py2app settings. Here's my setup.py
from setuptools import setup
APP = ['myProgram.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
...and here's the terminal command I'm using to compile my application with py2app
python setup.py py2app
Thanks for the help, everyone!