(PACKAGEDIR): New variable.
authormorioka <morioka>
Fri, 11 Sep 1998 09:26:54 +0000 (09:26 +0000)
committermorioka <morioka>
Fri, 11 Sep 1998 09:26:54 +0000 (09:26 +0000)
FLIM-CFG

index 0e81588..37ddd2a 100644 (file)
--- a/FLIM-CFG
+++ b/FLIM-CFG
 
 (setq FLIM_DIR (expand-file-name FLIM_PREFIX LISPDIR))
 
+(defvar PACKAGEDIR
+  (if (boundp 'early-packages)
+      (let ((dirs (append (if early-package-load-path
+                             early-packages)
+                         (if late-package-load-path
+                             late-packages)
+                         (if last-package-load-path
+                             last-packages)))
+           dir)
+       (while (not (file-exists-p
+                    (setq dir (car dirs))))
+         (setq dirs (cdr dirs)))
+       dir)))
+
 ;;; FLIM-CFG ends here