Jack Jansen
68ecab455c
Put the applet code inside USE_MAC_APPLET_SUPPORT ifdefs, to make 68k standalone Python compile.
1999-02-15 23:34:56 +00:00
Jack Jansen
6b6e61dd32
(finally) unified the interpreter and the applet as Just suggested ages ago. The
...
resulting program is called PythonInterpreter.
1999-02-15 21:33:34 +00:00
Just van Rossum
26a69db4c7
put the preferences file in a folder called "Python" inside the prefs folder, just like the IDE does -- jvr
1999-02-02 15:49:03 +00:00
Jack Jansen
deff89c8be
Replaced fprintf(stderr,...) with PySys_WriteStderr(...) where appropriate.
1998-10-12 20:53:15 +00:00
Jack Jansen
48a9c3634b
Mods by Just to allow aliases in sys.path entries
1998-09-07 11:36:17 +00:00
Jack Jansen
b93f52158b
Support for freezing packages (Just).
1998-08-18 12:23:11 +00:00
Jack Jansen
87c485c1ad
Initialize the program name before adding shared library resources (Just).
1998-07-31 09:38:01 +00:00
Jack Jansen
2e6445caa6
Don't add the library file to the resource file chain if it is the
...
same as the application file (Just).
1998-07-31 09:37:02 +00:00
Jack Jansen
7e1fb7c92d
New about box, with the version mesage filled in in a text item, and
...
PLstrcmp() fixed. (Just)
1998-07-31 09:36:30 +00:00
Jack Jansen
017e0ff1a0
The PYD resource should now contain 2 strings: one for the ppc
...
fragment name and one for the cfm68k fragment name (Just).
Also, some unused variables removed.
1998-07-31 09:34:47 +00:00
Jack Jansen
abdf93c6dc
Re-indented properly (Just).
1998-07-31 09:33:28 +00:00
Jack Jansen
ac82b6a041
If the preference filename resource is empty don't try to open or
...
create the preferences file. This is so that frozen programs don't
interfere with an existing Python installation, or leave turds in the
Preferences folder.
1998-07-13 13:38:29 +00:00
Jack Jansen
1e2260fcb4
All import-related code has moved to macimport.c.
...
There's also new support for importing code fragments: if a file on
sys.path contains a PYD resource with resourcename equal to the name
of the module to be imported this PYD resource should contain a
(pascal) string with the name of a code fragment to load. This allows
freezing Python programs without access to source or a development
environment.
1998-07-13 13:37:12 +00:00
Jack Jansen
fa68b07526
Print message when we load a PYC resource, if verbose import flag is on.
1998-06-26 14:52:04 +00:00
Jack Jansen
0072b8d994
An applet with Popt and GUSI preferences but without alis resource
...
didn't work, because the resource file chain was incomplete when we
tried to open the preference file. Fixed.
1998-05-07 13:08:58 +00:00
Jack Jansen
bbf4be2c2f
Incorrect argument for PyMacBuildwide()
1998-04-23 13:20:17 +00:00
Jack Jansen
d58cd630eb
Added PyMac_{Get,Build}wide. These should support python longints at
...
some point in the future.
1998-04-21 15:24:39 +00:00
Jack Jansen
efaada75e4
- Universal Headers 3 mods
...
- Started on menubar-restore code (but it still doesn't work 100%)
1998-02-20 16:03:15 +00:00
Jack Jansen
213649023c
Bug fix for fast module location
1997-10-08 15:32:46 +00:00
Jack Jansen
a7a89ebdbe
Implemented nositepython and oldexceptions flags
1997-10-07 21:48:57 +00:00
Jack Jansen
c73f83c8d9
Fixed for new "import dir.module" semantics. Needs accompanying fix in
...
import.c (yes Guido, I'll send it tomorrow)
1997-10-07 21:48:31 +00:00
Jack Jansen
36b983c2c2
Added old-exception and no-site-python options and balloon help
1997-09-09 13:53:21 +00:00
Jack Jansen
5b3c9717c4
The preference resource now has a version number
1997-09-08 13:22:49 +00:00
Jack Jansen
ac62569fd0
sys.prefix and sys.exec_prefix are now set correctly.
1997-09-08 13:22:22 +00:00
Jack Jansen
0c96887d35
Handle systemclicks ourselves, in stead of passing them to Sioux. This
...
fixes (or masks?) a bug with Python becoming unreactive during
time.sleep() if you have already switched applications before.
1997-08-26 13:20:34 +00:00
Jack Jansen
a8441ded7a
Added (dummy) PyOS_FiniInterrupts
1997-08-08 14:57:37 +00:00
Jack Jansen
7330b39a41
Adapted for 1.5a3: Py_SupressPrintingFlag is gone, and
...
Py_SetProgramName replaces Py_GetProgramName
1997-08-08 14:56:41 +00:00
Jack Jansen
36ed506f09
Added PyMac_SetEventHandler which allows you to replace complete event
...
handling in inner loop with python code. Also move (previously
machine independent) PyErr_CheckSignals here, so we can propagate
exceptions in event handling code.
1997-06-20 16:18:15 +00:00
Jack Jansen
eda78634a4
Make imports faster on the Mac, by
...
- Remembering whether sys.path components refer to files or folders,
- Using mac-specific code to check for file existence, in stead of trying
to fopen() each possible file.
These mods need an accompanying mod to import.c.
1997-06-12 15:29:46 +00:00
Jack Jansen
caa7c46ac4
- Restore SIOUX menubar just before exiting, if the console window is kept
...
open (so the user can quit with cmd-Q, print, etc)
- Removed a few unused routines
1997-06-12 10:49:13 +00:00
Jack Jansen
e3ae0dfeb7
Removed old scheduler parameterizing calls and replaced with something
...
a bit easier to use and understand
1997-06-03 15:28:29 +00:00
Jack Jansen
a39f1b0ce2
- Added Py_GetProgramFullPath
...
- Added PyMac_StopGUSISpin and have it called at exit time (fixes crash
when exiting with sockets open)
- Added PLstr... funcs needed by gusi: those provided by StdCLib are
broken under cfm68k
1997-05-23 15:35:14 +00:00
Jack Jansen
e44545fc0b
Workaround for bug in MSL and CWGUSI interaction that stopped the
...
"don't close window on exit" feature to work.
1997-05-07 15:48:54 +00:00
Jack Jansen
3089b7eead
- Various names in CodeFragments.h have changed
...
- a dummy main program was added, so we can use the standard MW MSL
runtime library for main programs (in stead of rolling our own, as we
did previously).
1997-05-07 15:48:01 +00:00
Jack Jansen
08c3be35c3
Changed the few old routine names still used to the new ones
...
Started working on MSL support
1997-04-08 15:27:00 +00:00
Jack Jansen
c587301e2e
- Changed GestaltEqu.h to Gestalt.h
...
- Changed FragLoader.h to CodeFragments.h
- Removed Desk.h
1997-02-24 13:59:38 +00:00
Jack Jansen
7e94404081
Only go into eventloop/interrupt check 10 times per second
1997-02-20 15:23:18 +00:00
Jack Jansen
42218ce33c
Added/updated copyright notices
...
(and the &*^$%@ resource files got binhexed again, sigh)
1997-01-31 16:15:11 +00:00
Jack Jansen
52ac037249
Added PyMac_Initialize() routine, to be used by embedding programs (in
...
stead of standard Py_Initialize(), which it calls).
1997-01-15 15:49:08 +00:00
Jack Jansen
8dc8a6e4be
Mac-specific version of getmtime (for non-GUSI Python, which needs
...
different include files)
1997-01-10 15:24:19 +00:00
Jack Jansen
8c6932136c
Added profiler initialization/finalization code (if __profile__ is defined)
1997-01-07 16:19:42 +00:00
Jack Jansen
e1d8c9bade
Fixed FSSpec->pathname code to add colon if the fsspec points to a disk.
1996-11-20 14:58:27 +00:00
Jack Jansen
26ee1260a2
Got rid of nfullpath in favor of PyMac_GetFullPath (which was pretty
...
much identical anyway).
Initialize PyMac_ApplicationPath and PyMac_ApplicationFSSpec to point
to the current application.
1996-11-09 18:45:18 +00:00
Jack Jansen
8096daad4f
When loading a PYC resource check whether the filename is the
...
application, and if so take a shortcut. This should speedup loading
PYC resources when running off a CDROM quite a bit.
1996-11-09 18:43:44 +00:00
Jack Jansen
83c74dfa2a
- Get preference filename from a resource
...
- Create the file if it doesn't exist and don't be fussy about it
1996-10-22 15:25:42 +00:00
Jack Jansen
0e06e7e7d5
About boxes should be at 20% of screen height, not halfway
1996-09-23 15:51:06 +00:00
Jack Jansen
d617c57dce
Changed default background yield time to 1 tick
1996-09-22 22:14:30 +00:00
Jack Jansen
924ca855da
Added macfs.FindApplication() to find application FSSpec given signature.
1996-09-20 15:25:16 +00:00
Jack Jansen
daed771fbb
Py_GetProgramName turns out not to be obsolete (used by _tkinter).
1996-09-09 14:48:05 +00:00
Jack Jansen
7d5f9e847a
- Put all options in a struct
...
- Unified initialization code for interpreter and applet
- Implemented new options to skip AE-processing for argc/argv and for
disabling interactive option setting
1996-09-07 17:09:31 +00:00