From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: adriano Newsgroups: gmane.lisp.guile.user Subject: Re: Can system modify an environment variable in the current environment? Date: Sun, 19 Sep 2021 08:45:00 +0200 Message-ID: References: <92defe0ebbea0cd329ab3bc80506c4a0e0923ea3.camel@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6598"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mortimer Cladwell To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Sep 19 08:46:02 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mRqaQ-0001V0-FL for guile-user@m.gmane-mx.org; Sun, 19 Sep 2021 08:46:02 +0200 Original-Received: from localhost ([::1]:36516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRqaO-0007hf-Fr for guile-user@m.gmane-mx.org; Sun, 19 Sep 2021 02:46:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRqZZ-0007hS-TW for guile-user@gnu.org; Sun, 19 Sep 2021 02:45:09 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]:45472) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRqZX-0006KC-Ks; Sun, 19 Sep 2021 02:45:09 -0400 Original-Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "fews1.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4HByqN2rpkzF3c8; Sat, 18 Sep 2021 23:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1632033904; bh=kuQI6NPPWkRPxiUwqkt1RfSg9TgurO3XWrc5d7emy/Q=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=mNDClyxu0ksppvdaTX1IF7kgmo6nFWwEAcefZFNaaAZEfQUujjAUgmVWlmoDAd2ll qjUJrbQxkC286VWFzXwixXYubyeTX3S15PsWiCm3s4Pkzcuq/tMJ2X6wAjodW0x99W Igy0sU9HCCFoNeB4hkP8vcQ4lvtIPzFDYlpugcCA= X-Riseup-User-ID: 5ECD561B3DAF7F6B15D0BD8848A08C220C57AF2E2B320F2870BEFF4CD87D36EB Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4HByqM1BDZz5vc8; Sat, 18 Sep 2021 23:45:02 -0700 (PDT) In-Reply-To: <92defe0ebbea0cd329ab3bc80506c4a0e0923ea3.camel@gnu.org> Received-SPF: pass client-ip=198.252.153.129; envelope-from=randomlooser@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17751 Archived-At: Il giorno gio, 02/09/2021 alle 22.06 +0200, Roel Janssen ha scritto: > > Or in this particular case, use the "add-to-load-path" procedure: > https://www.gnu.org/software/guile/manual/html_node/Load-Paths.html > An example usage of "add-to-load-path" is avalilable in Haunt, the static blog builder In haunt/ui.scm on line 130 (if my checkout is current) The first thing the "haunt" command does is it adds the current folder (getcwd) to the load path so that the rest of the haunt code base can be found Hope this helps