summaryrefslogblamecommitdiff
path: root/editors/cooledit/files/patch-ah
blob: ef786f4bc7324666f02ce006ec6bb63fd05b0d43 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                        







                                                                            
                     







                                                                 
                     







                                                                     
--- 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)