On Sun 19 Feb 2012 22:02, l...@gnu.org (Ludovic Courtès) writes: >> See Neil's use case here: >> >> http://thread.gmane.org/gmane.lisp.guile.devel/13440/focus=13621 >> >> Can we do something that makes sense for both cases? > > Well, (add-to-load-path (dirname (canonicalize-path (current-filename)))) ? > > Yes it’s verbose, but it’s predictable and clearly specified.
It's terribly verbose, IMO. If we can do something better for those users, we should. What did you think of my other suggestion about searching for the file in the load path, and only canonicalizing if it was not found in the load path? (If it is found in the load path, then it would be returned in its relative form.) Andy -- http://wingolog.org/