summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macmain.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-09-06 22:21:07 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-09-06 22:21:07 (GMT)
commit3f7d2b4319fb16aa89cfb7cf8fff537857289f49 (patch)
treec92cc7edfe89b253e058ec08aee6f2d28f5c44ef /Mac/Python/macmain.c
parent3d228879fe88228ee51d97b9bbae99c550e09746 (diff)
downloadcpython-3f7d2b4319fb16aa89cfb7cf8fff537857289f49.zip
cpython-3f7d2b4319fb16aa89cfb7cf8fff537857289f49.tar.gz
cpython-3f7d2b4319fb16aa89cfb7cf8fff537857289f49.tar.bz2
- Rationalized override preferences support, by remembering
application resource fork RefNum and looking there only - Added support for loading gusi prefs from Preferences file (needs modified GUSI, but Matthias promised he'd incorporate the fixes in the next release)
Diffstat (limited to 'Mac/Python/macmain.c')
-rw-r--r--Mac/Python/macmain.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c
index a85f88f..095673e 100644
--- a/Mac/Python/macmain.c
+++ b/Mac/Python/macmain.c
@@ -52,6 +52,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
extern int Py_DebugFlag; /* For parser.c, declared in pythonrun.c */
extern int Py_VerboseFlag; /* For import.c, declared in pythonrun.c */
extern int Py_SuppressPrintingFlag; /* For ceval.c, declared in pythonrun.c */
+short PyMac_AppRefNum; /* RefNum of application resource fork */
/* Subroutines that live in their own file */
@@ -97,7 +98,9 @@ init_mac_world()
static void
init_common()
{
-
+ /* Remember resource fork refnum, for later */
+ PyMac_AppRefNum = CurResFile();
+
/* Initialize toolboxes */
init_mac_world();
@@ -110,6 +113,7 @@ init_common()
/* Setup GUSI */
GUSIDefaultSetup();
PyMac_SetGUSISpin();
+ PyMac_SetGUSIOptions();
#endif
#ifdef USE_SIOUX