mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-22 03:30:22 +02:00
`include' relative paths relative to including file
* module/ice-9/psyntax.scm (include): Like `load', interpret relative paths as being relative to the file that does the `include'. * doc/ref/api-evaluation.texi: Update docs.
This commit is contained in:
parent
f0b6d8c71d
commit
84f5a82517
2 changed files with 20 additions and 8 deletions
|
@ -1161,6 +1161,9 @@ parts of programs together at expansion-time instead of at run-time.
|
|||
Open @var{file-name}, at expansion-time, and read the Scheme forms that
|
||||
it contains, splicing them into the location of the @code{include},
|
||||
within a @code{begin}.
|
||||
|
||||
If @var{file-name} is a relative path, it is searched for relative to
|
||||
the path that contains the file that the @code{include} for appears in.
|
||||
@end deffn
|
||||
|
||||
If you are a C programmer, if @code{load} in Scheme is like
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue