From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marek Kubica Newsgroups: gmane.lisp.guile.user Subject: Re: Modules Date: Sat, 29 Jan 2011 13:13:15 +0100 Message-ID: <20110129131315.506f1e8c@halmanfloyd> References: <20101208124502.5f25b64d@halmanfloyd> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1296303629 19919 80.91.229.12 (29 Jan 2011 12:20:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 Jan 2011 12:20:29 +0000 (UTC) Cc: guile-user@gnu.org To: Andy Wingo Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jan 29 13:20:18 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pj9mr-00029t-Sw for guile-user@m.gmane.org; Sat, 29 Jan 2011 13:20:18 +0100 Original-Received: from localhost ([127.0.0.1]:42881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pj9mr-0002Ut-Dz for guile-user@m.gmane.org; Sat, 29 Jan 2011 07:20:17 -0500 Original-Received: from [140.186.70.92] (port=42025 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pj9mm-0002Tu-I5 for guile-user@gnu.org; Sat, 29 Jan 2011 07:20:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pj9ml-0007x9-5c for guile-user@gnu.org; Sat, 29 Jan 2011 07:20:12 -0500 Original-Received: from coaxial.xivilization.net ([178.63.18.39]:35126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pj9ml-0007vk-0y for guile-user@gnu.org; Sat, 29 Jan 2011 07:20:11 -0500 Original-Received: from ppp-93-104-109-226.dynamic.mnet-online.de ([93.104.109.226] helo=halmanfloyd) by coaxial.xivilization.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1Pj9md-000661-8h; Sat, 29 Jan 2011 13:20:03 +0100 In-Reply-To: X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 178.63.18.39 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8394 Archived-At: On Fri, 28 Jan 2011 17:26:07 +0100 Andy Wingo wrote: > On Wed 08 Dec 2010 12:45, Marek Kubica > writes: > > > Is there a way to add the current directory to the search path? I > > think this should be default, just like in Python, otherwise > > creating modules is a really big hassle. > > As Andreas mentions, -L is the thing. We don't add the current > directory to the search path because it is a security issue, for the > same reason that "." is not in $PATH. What about "the same directory that the file is in"? The point is, when writing scripts that become larger than one file, splitting them into modules becomes immensely painful because the modules cannot find each other. regards, Marek