]> granicus.if.org Git - python/commit
In MachoPython, don't simulate argc/argv unless we have argc=1 and argv[1]
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 2 Jan 2002 22:53:38 +0000 (22:53 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 2 Jan 2002 22:53:38 +0000 (22:53 +0000)
commit4b517854d0b99367d82523306465d6fc97da17d0
treeccdc52ee3221bf6673e560c63895e18cf5b789b1
parent1142d595eed6ee9a8bae0907d2347ddae0692651
In MachoPython, don't simulate argc/argv unless we have argc=1 and argv[1]
starts with "-psn_". This means the drag-and-drop continues to work as
expected, but we can now also do
/Applications/Python.app/Contents/MacOS/python script.py
from the command line, which is a lot easier with debugging. Pressing <option>
at this point also has the expected effect of opening the options dialog!
Mac/Python/macmain.c