summaryrefslogtreecommitdiffstats
path: root/Mac/Python
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2001-10-31 22:55:08 (GMT)
committerJust van Rossum <just@letterror.com>2001-10-31 22:55:08 (GMT)
commitab57c7dcfc684d6f10468f6dc88dfa1b24ea967f (patch)
treea22adc49c94d3be7e4946a5d5a44e0b21c54c480 /Mac/Python
parente2ec3ebcb852923a7ce23122dcd32c341c9416b9 (diff)
downloadcpython-ab57c7dcfc684d6f10468f6dc88dfa1b24ea967f.zip
cpython-ab57c7dcfc684d6f10468f6dc88dfa1b24ea967f.tar.gz
cpython-ab57c7dcfc684d6f10468f6dc88dfa1b24ea967f.tar.bz2
Moved macfsn hackery from macmain.c to macfsmodule.c so it loads
on demand instead of at startup.
Diffstat (limited to 'Mac/Python')
-rw-r--r--Mac/Python/macmain.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c
index ad0d82b..b86b528 100644
--- a/Mac/Python/macmain.c
+++ b/Mac/Python/macmain.c
@@ -392,31 +392,6 @@ run_inspect(void)
return sts;
}
-/*
-** Import the macfsn module, which will override the Standard File
-** calls in the macfs builtin module by Navigation Services versions,
-** if available on this machine.
-*/
-static void
-PyMac_InstallNavServicesForSF(void)
-{
- if ( !PyMac_options.nonavservice ) {
- PyObject *m = PyImport_ImportModule("macfsn");
-
- if ( m == NULL ) {
- PySys_WriteStderr("'import macfsn' failed; ");
- if (Py_VerboseFlag) {
- PySys_WriteStderr("traceback:\n");
- PyErr_Print();
- }
- else {
- PySys_WriteStderr("use -v for traceback\n");
- }
- PyErr_Clear();
- }
- }
-}
-
#ifdef USE_MAC_APPLET_SUPPORT
/* Applet support */
@@ -464,7 +439,6 @@ PyMac_InitApplet(void)
init_common(&argc, &argv, 0);
Py_Initialize();
- PyMac_InstallNavServicesForSF();
PySys_SetArgv(argc, argv);
err = run_main_resource();
@@ -488,7 +462,6 @@ PyMac_Initialize(void)
init_common(&argc, &argv, 1);
Py_Initialize();
- PyMac_InstallNavServicesForSF();
PySys_SetArgv(argc, argv);
}
@@ -675,8 +648,6 @@ Py_Main(int argc, char **argv, char *filename)
PyUnicode_SetDefaultEncoding(PyMac_getscript());
- PyMac_InstallNavServicesForSF();
-
PySys_SetArgv(argc, argv);
if (filename == NULL && isatty((int)fileno(fp))) {