-
Jack Jansen yazdı
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.
998a40a6
| Adı |
Son kayıt (commit)
|
Son güncelleme |
|---|---|---|
| .. | ||
| Build | ||
| Compat | ||
| Contrib | ||
| Demo | ||
| Distributions | ||
| IDE scripts | ||
| Include | ||
| Lib | ||
| MPW | ||
| Modules | ||
| OSX | ||
| OSXResources | ||
| Python | ||
| Resources | ||
| Tools | ||
| Unsupported | ||
| Wastemods | ||
| mwerks | ||
| scripts | ||
| tclmods | ||
| HISTORY | ||
| ReadMe | ||
| ReadMe-dev | ||
| ReadMe-src | ||
| Relnotes | ||
| _checkversion.py |