[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rationale behind the module paths in definition of the module
From: |
Ludovic Courtès |
Subject: |
Re: Rationale behind the module paths in definition of the module |
Date: |
Thu, 08 Jan 2015 11:17:43 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
When a program contains:
(use-modules (foo bar))
Guile searches for a file named foo/bar.scm (or foo/bar) in its search
path. The search path is defined by the user, using the GUILE_LOAD_PATH
environment variable etc. (info "(guile) Load Paths").
So the source file of that module, foo/bar.scm, can be moved around on
the file system, as long as GUILE_LOAD_PATH is adjusted to list the
directory that contains this file.
Does that answer your question?
Ludo’.