Issue 635570: remove debug prints from macmain.c (original) (raw)

I posted to the MacPython mailing list:

pythonw does the following when run with a source file as its argument: % pythonw TUI.py original argc=2 original argv[0] = "/Applications/Python.app/Contents/MacOS/python" original argv[1] = "TUI.py" modified argc=2 modified argv[0] = "/Applications/Python.app/Contents/MacOS/python" modified argv[1] = "TUI.py"

Details:

#!/bin/sh exec /Applications/Python.app/Contents/MacOS/python $@

Jack Jansen kindly suggested that I could fix this by removing the debug prints from macmain.c and rebuilding. He also asked me to file this bug report.