diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-09-11 13:08:10 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-09-11 13:08:10 (GMT) |
commit | 998a40a6d40a4ee5272f8683fbc3e9c801867fca (patch) | |
tree | 836f90d6039d1dd324e0f1442a650c1c57b11e01 /Parser/firstsets.c | |
parent | 0b60772ee9c32f9baa0d739aa603743ca9c511f6 (diff) | |
download | cpython-998a40a6d40a4ee5272f8683fbc3e9c801867fca.zip cpython-998a40a6d40a4ee5272f8683fbc3e9c801867fca.tar.gz cpython-998a40a6d40a4ee5272f8683fbc3e9c801867fca.tar.bz2 |
Mods by Donovan Preston (with changes by me to make them "go with the flow")
that will detect an __main__.py or __rawmain__.py in the application bundle.
This file is then exectued as the main script. We now have applets in
MachO Python!!!
The difference between __main__ and __rawmain__ is that the former gets a
complete simulated argv (so you can drop files on the applet and the script
sees them in sys.argv) while the latter skips the argv simulation and the
<option>key dialog. This keeps the AppleEvent that started the app intact,
as well as the funny "-psn_xxxx" argv[1] argument, so the script can do
with these what it wants.
Diffstat (limited to 'Parser/firstsets.c')
0 files changed, 0 insertions, 0 deletions