mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
1e39753fcf
PR: 12162
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
--- editor/coolpython.c.orig Fri Jun 11 16:24:42 1999
|
|
+++ editor/coolpython.c Sat Jun 12 08:30:33 1999
|
|
@@ -1485,7 +1485,7 @@
|
|
PyDict_SetItemString (d, "Mod3Mask", PyInt_FromLong ((long) Mod3Mask));
|
|
PyDict_SetItemString (d, "Mod4Mask", PyInt_FromLong ((long) Mod4Mask));
|
|
PyDict_SetItemString (d, "Mod5Mask", PyInt_FromLong ((long) Mod5Mask));
|
|
- PyDict_SetItemString (d, "LIBDIR", PyString_FromString (LIBDIR));
|
|
+ PyDict_SetItemString (d, "DATADIR", PyString_FromString (DATADIR));
|
|
}
|
|
|
|
void coolpython_run_file (char *filename)
|
|
@@ -1544,7 +1544,7 @@
|
|
import sys\n\
|
|
sys.path.append('%s')\n\
|
|
sys.path.append('%s%s')\n\
|
|
-", LIBDIR, home_dir, EDIT_DIR);
|
|
+", DATADIR, home_dir, EDIT_DIR);
|
|
e = PyRun_String (s, Py_file_input, name_space, name_space);
|
|
if (!e) {
|
|
PyErr_Print ();
|
|
@@ -1553,7 +1553,7 @@
|
|
}
|
|
Py_DECREF (e);
|
|
coolpython_constants (name_space);
|
|
- sprintf (s, "%s/%s", LIBDIR, GLOBAL_STARTUP_FILE);
|
|
+ sprintf (s, "%s/%s", DATADIR, GLOBAL_STARTUP_FILE);
|
|
coolpython_run_file (s);
|
|
sprintf (s, "%s%s/%s", home_dir, EDIT_DIR, GLOBAL_STARTUP_FILE);
|
|
if ((fd = open (s, O_RDONLY)) >= 0)
|