mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Issue #196 - Check system folder for libraries
Check sys folder if a library cannot be found, before giving up and checking local dir.
This commit is contained in:
parent
27caeb3fbf
commit
52d764209b
1 changed files with 8 additions and 6 deletions
|
@ -284,9 +284,10 @@
|
|||
(return f))))
|
||||
(append prepend-dirs (list dir) append-dirs))
|
||||
;; Not found, just return base name
|
||||
(if (> (string-length dir) 0)
|
||||
(string-append dir "/" filename)
|
||||
filename)))
|
||||
(lib:check-system-path
|
||||
(if (> (string-length dir) 0)
|
||||
(string-append dir "/" filename)
|
||||
filename))))
|
||||
))
|
||||
|
||||
;; Get path to directory that contains the library
|
||||
|
@ -316,9 +317,10 @@
|
|||
(return f))))
|
||||
(append prepend-dirs (list dir) append-dirs))
|
||||
;; Not found, just return base name
|
||||
(if (> (string-length dir) 0)
|
||||
(string-append dir "/" filename)
|
||||
filename)))
|
||||
(lib:check-system-path
|
||||
(if (> (string-length dir) 0)
|
||||
(string-append dir "/" filename)
|
||||
filename))))
|
||||
;(if (tagged-list? 'scheme import)
|
||||
; (string-append (Cyc-installation-dir 'sld) "/" path) ;; Built-in library
|
||||
; path)
|
||||
|
|
Loading…
Add table
Reference in a new issue