[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
load searching load path?
From: |
Seth Alves |
Subject: |
load searching load path? |
Date: |
Tue, 10 Jul 2001 10:52:32 -0700 |
I feel confused. Can anyone help?
-seth
- procedure: load filename
Load FILE and evaluate its contents in the top-level environment.
The load paths are searched. If the variable `%load-hook' is
defined, it should be bound to a procedure that will be called
before any code is loaded. See documentation for `%load-hook'
later in this section.
twitch$ cat > /tmp/hi.scm
(display "hi") (newline)
twitch$ guile
guile> (load "hi.scm")
ERROR: In procedure open-file:
ERROR: No such file or directory: "hi.scm"
ABORT: (system-error)
guile> (set! %load-path (cons "/tmp" %load-path))
guile> (load "hi.scm")
ERROR: In procedure open-file:
ERROR: No such file or directory: "hi.scm"
ABORT: (system-error)
guile> (load (%search-load-path "hi.scm"))
hi
guile> (version)
"1.5.0"
- load searching load path?,
Seth Alves <=