| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Parenteau.
|
|
|
|
|
|
|
|
| |
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!
|
| |
|
| |
|
|
|
|
| |
(frozen) Python program had installed its own menubar previously. We now guard against this, with a bit of a hack: FrameWork uses the same Menu ID as Sioux, and the init code checks that the text in the menu is "About SIOUX" before replacing it.
|
| |
|
|
|
|
| |
changes from start of branch upto r22b2 were already merged, of course).
|
|
|
|
|
|
|
|
|
|
| |
- Don't scan for cmd-. unless in the foreground
- Scan before switching out to other processes, not after
- don't scan if SchedParams.check_interrupt is false (!)
- But: do scan if we're blocked on I/O
One problem remains: in the last case KeyboardInterrupt is raised
too late.
|
|
|
|
| |
removed some outdated code.
|
|
|
|
|
|
| |
was installed previously. This fixes bug #476904, but I'm not 100%
sure it doesn't break anything else. But if it does I'll notice tomorrow
when I try to build GRiNS:-)
|
|
|
|
| |
on demand instead of at startup.
|
|
|
|
|
|
| |
understand the __main__.py convention used there for applets. This gives us applets that work on both OS9 and OSX! (Although "applet" may not be the correct word for something that is going to be multimegabyte:-).
But: the code is currently disabled, as it requires CodeWarrior 7 and I'm still using 6.
|
|
|
|
|
|
| |
MacPython console window completely, and optionally route console output (and input) to routines provided by the embedding app.
Things don't fully work yet, but at least it doesn't break anything.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
parameter for the return string (as unix pathnames are not limited
by the 255 char pstring limit).
Implemented the function for MachO-Python, where it returns unix pathnames.
|
|
|
|
|
|
|
|
|
|
| |
fullblown drag and drop application. To my surprise it is starting
to work already: Python actually executes a script dropped on it.
To be done:
- Make sure this still works in MacPython
- Don't lose argv[0] in the process
- Applet support
|
|
|
|
|
|
|
|
| |
and accepting unix-style newlines on input.
Also (finally) added a startup option to get -vv behaviour.
Moved __convert_to_newlines to main.c because that's easier with the newline option.
|
|
|
|
| |
breaking in to the lowlevel I/O system. Can be disabled by defining WITHOUT_UNIX_NEWLINES.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
with functionality needed for both unix-Python and MacPython and a
new smaller ./Mac/Python/macglue.c which contains MacPython stuff only.
pymactoolbox.h has moved to ./Include from ./Mac/Include and now also
contains the relevant stuff from macglue.h.
The net effect of this is that the ./Mac subdirectory is not needed
anymore for building the unix-Python core on MacOSX (it is needed
for building the extension modules).
|
| |
|
|
|
|
| |
Also updated pyconfig.h to the current state of pyconfig.h.in.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
and pathnames where applicable.
PyMac_GetFSSpec and PyMac_BuildFSSpec have moved to macfsmodule from macglue.
These mods are untested on OSX.
|
| |
|
|
|
|
| |
Return a reasonable name for the general macos exception (MacOS.Error).
|
|
|
|
| |
package to be loaded from a PYD resource.
|
|
|
|
| |
modern (UPP in stead of Proc) names for callback object creation.
|
| |
|
|
|
|
|
|
| |
for loading modules from the application resource fork stopped working
when sys.path component normalization was implemented. Comparison
of sys.path components is now done by FSSpec in stead of by pathname.
|
| |
|
|
|
|
| |
have been there in the first place.
|
|
|
|
| |
the stuff that is only needed on classic-MacOS.
|
|
|
|
| |
Py_BuildTuple helpers) from one dynamically imported module to another.
|
|
|
|
|
|
|
|
| |
changes
are including Carbon/Carbon.h in stead of the old headers (unless WITHOUT_FRAMEWORKS
is defined, as it will be for classic MacPython) and selectively disabling all the
stuff that is unneeded in a unix-Python (event handling, etc).
|
|
|
|
| |
!TARGET_API_MAC_CARBON. This should greatly facilitate porting stuff to OSX in its MachO/BSD incarnation.
|
|
|
|
|
| |
- Better handling of menu bar save/restore.
- Override abort() so it honours the "keep console window" flag.
|
|
|
|
| |
sure why this wasn't a problem before...
|
| |
|
| |
|
| |
|
|
|
|
| |
delayconsole and keepopen code neater. Also tells Sioux to behave better with events, and handles cmd-. during print better. The pythonpreferences have also changed due to this.
|
|
|
|
| |
rlimit. For now we set a hard limit of 256K (default rlimit is 512K).
|
|
|
|
| |
previous complicated expression.
|
|
|
|
| |
may have to hit it repeatedly.
|