From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.user Subject: Re: Modules Date: Wed, 08 Dec 2010 19:11:42 +0100 Message-ID: <87zksgrv6p.fsf@delenn.lan> References: <20101208124502.5f25b64d@halmanfloyd> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291902628 21847 80.91.229.12 (9 Dec 2010 13:50:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 13:50:28 +0000 (UTC) Cc: guile-user@gnu.org To: Marek Kubica Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Dec 09 14:50:22 2010 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 1PQgt3-0002I8-TL for guile-user@m.gmane.org; Thu, 09 Dec 2010 14:50:22 +0100 Original-Received: from localhost ([127.0.0.1]:39983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQgt3-00018k-5L for guile-user@m.gmane.org; Thu, 09 Dec 2010 08:50:21 -0500 Original-Received: from [140.186.70.92] (port=36593 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQOUj-0001km-DW for guile-user@gnu.org; Wed, 08 Dec 2010 13:12:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQOUh-0002CJ-VR for guile-user@gnu.org; Wed, 08 Dec 2010 13:12:01 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:55363 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PQOUh-0002Bw-HD for guile-user@gnu.org; Wed, 08 Dec 2010 13:11:59 -0500 Original-Received: (qmail invoked by alias); 08 Dec 2010 18:11:51 -0000 Original-Received: from 83-215-154-5.hage.dyn.salzburg-online.at (EHLO nathot.lan) [83.215.154.5] by mail.gmx.net (mp051) with SMTP; 08 Dec 2010 19:11:51 +0100 X-Authenticated: #3102804 X-Provags-ID: V01U2FsdGVkX1/M2O4zsubMRE92PId4sXr5M2fGdFupsKXlU/LggF QpXL6rXKrYbRyH Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by nathot.lan (Postfix) with ESMTP id 18F133A695; Wed, 8 Dec 2010 19:11:46 +0100 (CET) Original-Received: from nathot.lan ([127.0.0.1]) by localhost (nathot.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ifb51YF2CDFw; Wed, 8 Dec 2010 19:11:42 +0100 (CET) Original-Received: from delenn.lan (delenn.lan [192.168.3.11]) by nathot.lan (Postfix) with ESMTP id 97FD93A693; Wed, 8 Dec 2010 19:11:42 +0100 (CET) Original-Received: by delenn.lan (Postfix, from userid 1000) id 422802C0083; Wed, 8 Dec 2010 19:11:42 +0100 (CET) In-Reply-To: <20101208124502.5f25b64d@halmanfloyd> (Marek Kubica's message of "Wed, 8 Dec 2010 12:45:02 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:8300 Archived-At: Marek Kubica writes: > Hi, > > I tried executing the modules example: > > $ cd guile-git/examples/module > $ guile -s main > [...] > ERROR: no code for module (module-0) > > Is there a way to add the current directory to the search path? > % guile --help | grep -i directory -L DIRECTORY add DIRECTORY to the front of the module load path So it's "guile -L . -s main" for the case above. > I think this should be default, just like in Python, otherwise > creating modules is a really big hassle. > I'm not sure this should be made the default; for an installed program implemented in Guile, having "." implicitly in the load path would be unneccessary and even a security issue. Regards, Rotty -- Andreas Rottmann --