From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Question about guix system disk-image Date: Mon, 21 Aug 2017 16:09:20 +0200 Message-ID: <87efs5vwq7.fsf@elephly.net> References: <20170820134425.57ohvu5yy2ux6s2q@abyayala> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djnOc-0002JF-5d for guix-devel@gnu.org; Mon, 21 Aug 2017 10:09:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djnOW-000175-DO for guix-devel@gnu.org; Mon, 21 Aug 2017 10:09:38 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21147) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1djnOW-00016q-6q for guix-devel@gnu.org; Mon, 21 Aug 2017 10:09:32 -0400 In-reply-to: <20170820134425.57ohvu5yy2ux6s2q@abyayala> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: ng0 Cc: guix-devel@gnu.org ng0 writes: […] > So I think I still don't understand the full PATH perspective/view. […] > My theory is to just add the PATH (to be changed) to PATH. Do you really mean “PATH” or something else? “PATH” is only used by the shell to find the full path to executables when only their names are given. This is unrelated to how Guile finds modules. And that, too, is unrelated to how “guix system disk-image” works. > What I'm trying to understand is how I could reduce > guix system disk-image ~/src/infotropique/infotropique/infotropique/system/install-core.scm > to just a single infotropique/system/install-core.scm. “guix system disk-image” takes a (relative or absolute) path to a file. It then evaluates “(load* the-file-path)”. If the current working directory is equal to the directory containing the file then all a user needs to provide is the basename. A user can also provide an absolute path or a relative path (starting from the current work directory). What matters is only that “load*” gets a file name as an argument. It turns the file name into an absolute name and then simply “load”s it. This bypasses GUILE_LOAD_PATH. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net