summaryrefslogtreecommitdiff
path: root/Mac/Python
AgeCommit message (Collapse)AuthorLines
2003-02-25Removed debug output. Fixes #635570Jack Jansen-4/+0
2002-10-29Added a few printfs in case of unexpected situations during application startup.Jack Jansen-5/+14
2002-02-24backport of 1.4:Jack Jansen-4/+6
Don't call PyMac_OutputSeen if we have a custom console. Fix by Alexandre Parenteau.
2002-02-24bqackport of 1.73:Jack Jansen-2/+8
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!
2001-12-28This commit was manufactured by cvs2svn to create branchcvs2svn-0/+11
'release22-maint'.
2001-12-14Use getcwd(), not silly old getwd().Jack Jansen-1/+1
2001-12-10The new menu initialization code would also add the SIOUX menus if a ↵Jack Jansen-1/+6
(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.
2001-12-05Replace sprintf() with PyOS_snprintf().Jack Jansen-4/+4
2001-11-30Merged changes made on r22b2-branch between r22b2 and r22b2-mac (theJack Jansen-7/+2
changes from start of branch upto r22b2 were already merged, of course).
2001-11-10Fixed various problems with command-dot handling (some very old):Jack Jansen-45/+52
- 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.
2001-11-05MacPython -vv equivalent printed incorrect filenames, fixed. AlsoJack Jansen-11/+1
removed some outdated code.
2001-11-01We always install the Sioux menubar, in stead of only when no menubarJack Jansen-0/+8
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:-)
2001-10-31Moved macfsn hackery from macmain.c to macfsmodule.c so it loadsJust van Rossum-29/+0
on demand instead of at startup.
2001-10-30Mod by Donovan Preston to allow MacPython to live in a Python.app bundle and ↵Jack Jansen-30/+58
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.
2001-10-08Mods by Alexandre Parenteau to allow embedding programs to disable the ↵Jack Jansen-39/+78
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.
2001-09-11Mods by Donovan Preston (with changes by me to make them "go with the flow")Jack Jansen-14/+90
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.
2001-09-11Failing to import macfsn is not a fatal error.Jack Jansen-1/+2
2001-09-11Implemented PyMac_GetFullPathname for MacPython.Jack Jansen-3/+13
2001-09-10Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length'Jack Jansen-22/+17
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.
2001-09-05Changes to make these work under OSX as the main program for aJack Jansen-53/+113
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
2001-09-01Added preferences/startup options for division warningJack Jansen-23/+37
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.
2001-08-27Experimental feature: allow \n as well as \r as newline for text files, by ↵Jack Jansen-0/+17
breaking in to the lowlevel I/O system. Can be disabled by defining WITHOUT_UNIX_NEWLINES.
2001-08-19PATCHLEVEL is outdated, use PY_VERSION.Jack Jansen-1/+1
2001-08-08Split macglue.c into two: a new mactoolboxglue.c (in ./Python)Jack Jansen-376/+0
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).
2001-08-07Got rid of 68k-Mac and other outdated ifdefs.Jack Jansen-26/+0
2001-08-07Bit the bullet and enabled garbage collection (finally).Jack Jansen-1/+7
Also updated pyconfig.h to the current state of pyconfig.h.in.
2001-08-03PyMac_GetFSSpec must be called via the dylib glue code on OSX.Jack Jansen-0/+1
2001-08-03Merging appropriate 2.1.1 fixes back into the main trunk.Jack Jansen-1/+6
2001-07-27config.h renamed to pyconfig.hJack Jansen-1/+1
2001-07-12Fixed another case of the PyArg_Parse 'h' semantic change problem, sigh...Jack Jansen-1/+1
2001-07-08Implemented minimal FSRef support, plus conversion between FSRefs, FSSpecs ↵Jack Jansen-61/+0
and pathnames where applicable. PyMac_GetFSSpec and PyMac_BuildFSSpec have moved to macfsmodule from macglue. These mods are untested on OSX.
2001-07-04Set the default 8-bit encoding based on the system script and language.unknown-0/+2
2001-07-04Don't promise mac-japanese encoding as we don't have a codec for it.unknown-1/+4
Return a reasonable name for the general macos exception (MacOS.Error).
2001-06-26Fixed bug that prevented shared libs that are submodules of aJust van Rossum-1/+1
package to be loaded from a PYD resource.
2001-06-20Adapted for Universal Headers 3.4: refcon type has changed (sigh) and use ↵Jack Jansen-6/+12
modern (UPP in stead of Proc) names for callback object creation.
2001-05-22removed a routine that has moved to macglue.cJack Jansen-21/+0
2001-05-22Fixed a nasty slowdown in imports in frozen applications: the shortcutJack Jansen-18/+32
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.
2001-05-19Another include Carbon/Carbon.hJack Jansen-0/+4
2001-05-19Moved PyMac_GetFullPath from macgetargv.c to macglue.c. It shouldJack Jansen-40/+60
have been there in the first place.
2001-05-19Merged mactoolboxglue.c into macglue.c. A later step will be to separate outJack Jansen-108/+106
the stuff that is only needed on classic-MacOS.
2001-05-17Glue code to connect obj_New and obj_Convert routines (the PyArg_Parse and ↵Jack Jansen-0/+108
Py_BuildTuple helpers) from one dynamically imported module to another.
2001-05-12Got the first MacPython module working under MacOSX/MachO (gestalt). Main ↵Jack Jansen-51/+41
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).
2001-05-12Be more sensible about when to use TARGET_API_MAC_OS8 in stead of ↵Jack Jansen-11/+11
!TARGET_API_MAC_CARBON. This should greatly facilitate porting stuff to OSX in its MachO/BSD incarnation.
2001-04-25- Raise console window on input. Fixes Carbon hang.Jack Jansen-4/+32
- Better handling of menu bar save/restore. - Override abort() so it honours the "keep console window" flag.
2001-02-28Reset the resource file chain before calling PyMac_OpenPrefFile. I'm not ↵Jack Jansen-0/+1
sure why this wasn't a problem before...
2001-02-21Release a PYC resource after reading it. No need to keep it incore.Jack Jansen-0/+2
2001-02-17More changes to attempt to get the menubar back on exit. Without success:-(Jack Jansen-2/+14
2001-02-17Made version string shorter for Carbon so it fits on one line.Jack Jansen-13/+5
2001-02-11Bit the bullet and added a private GUSISIOUX for Python. This makes the ↵Jack Jansen-12/+258
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.
2001-02-02On MacOSX StackSpace() may lie because it doesn't know about the stack ↵Jack Jansen-2/+19
rlimit. For now we set a hard limit of 256K (default rlimit is 512K).