|
|
How do you set the load path?
In sbcl, I want to add my personal lib directory to the path LOAD
looks in to find files. Is there a way to do that in a [.]sbclrc
file or some other centralized place? I tried this:
(setf *default-pathname-defaults*
(merge-pathnames (pathname "/my/path/name/")
*default-pathname-defaults*))
but that replaced the current directory instead of adding to it.
--
Dan
www.prairienet.org/~dsb/
|
|
0
|
|
|
|
Reply
|
randomgeek (299)
|
5/15/2007 7:27:10 PM |
|
Dan Bensen <randomgeek@cyberspace.net> writes:
> In sbcl, I want to add my personal lib directory to the path LOAD
> looks in to find files. Is there a way to do that in a [.]sbclrc
> file or some other centralized place? I tried this:
> (setf *default-pathname-defaults*
> (merge-pathnames (pathname "/my/path/name/")
> *default-pathname-defaults*))
>
> but that replaced the current directory instead of adding to it.
*DEFAULT-PATHNAME-DEFAULTS* isn't a list, it's a single pathname. LOAD
doesn't search multiple directories.
For my personal projects, I always make ASDF files to load them, and
symlink the .asd files into ~/.sbcl/systems/. Then I can use REQUIRE.
Zach
|
|
0
|
|
|
|
Reply
|
xach (862)
|
5/15/2007 7:26:43 PM
|
|
Dan Bensen <randomgeek@cyberspace.net> writes:
> Zach Beane wrote:
> > *DEFAULT-PATHNAME-DEFAULTS* isn't a list, it's a single pathname.
>
> That's why I tried merge-pathnames instead of PUSH. I thought it
> might return something like #P"/my/path/name/;/path/to/current/dir/".
MERGE-PATHNAMES takes a pathname with missing parts and copies the
parts from another pathname to fill it out as much as possible. The
resulting single pathname is a merger of two pathnames into one, not
two pathnames into two or more.
Zach
|
|
0
|
|
|
|
Reply
|
xach (862)
|
5/15/2007 8:12:23 PM
|
|
Zach Beane wrote:
> *DEFAULT-PATHNAME-DEFAULTS* isn't a list, it's a single pathname.
That's why I tried merge-pathnames instead of PUSH. I thought it
might return something like #P"/my/path/name/;/path/to/current/dir/".
> For my personal projects, I always make ASDF files to load them, and
> symlink the .asd files into ~/.sbcl/systems/. Then I can use REQUIRE.
Thanks. It looks like asdf:*central-registry* may work, but I wanted
to make sure there wasn't another way.
--
Dan
www.prairienet.org/~dsb/
|
|
0
|
|
|
|
Reply
|
randomgeek (299)
|
5/15/2007 8:12:51 PM
|
|
|
3 Replies
46 Views
(page loaded in 0.09 seconds)
Similiar Articles: How to set EMACSLOADPATH - comp.emacsHi all, When I set EMACSLOADPATH as export ... Maybe you need `--with-lispdir=/DIR', see the INSTALL ... The syntax of EMACSLOADPATH is the same as used for PATH ... Setting different path for different users - comp.soft-sys.matlab ...Hi, I am working on a Windows 7 server at my work, with my user name. I am working on a file fulled with m files programs. These file is set on the path. change 'file name' in 'From Multimedia File' simulink block - comp ...I need to load a avi video into workspace and do some processing work. ... the avi file in a .m file and get the path ... different avi files, i have to manually set ... How to save default libraries path - comp.soft-sys.sasHow to save default libraries path - comp.soft-sys.sas user ... How do I set or change the PATH system ... sys.sas Save file defaults to utf-16 - comp.emacs to the load-path ... Do the inplace edit without backup file generated. - comp.lang ...... supplied) -Idirectory specify $LOAD_PATH directory ... Restoring data only from backup using CCC? - comp.sys.mac ... by using ruby? ... executing your script -d set ... How to insert a picture in to a GUI - comp.soft-sys.matlab ...Works with Windows or Unix since paths are all ... to > save .bmp file in mat file format, then load it. Could you ... How to put the image in to GUI! - comp.soft-sys ... set path to latest file, when starting - comp.soft-sys.matlab ...Hi Is it able to automatically set the current folder and path to those of the latest closed m file, when starting matlab? Mine is always in Des... load JDE(E) etc. on Demand (Debian) - comp.emacs... usr/share/emacs/site-lisp/cedet-common/" added to `load-path' | Setting up cedet...done | Setting up cogre... | progn: | Cannot open load file: cogre-load | Setting up ... Set PrimoPDF on Windows to DEFAULT to PRINT resolution - comp.text ...Do you know how we can we modify PrimoPDF to default to "For Print" output settings? ... setting path to ghostscript (windows) - comp.graphics.apps.gimp ... print setup saves the ... Microfocus Cobol Workbench 4 on XP ? - comp.lang.cobolBut, how do you load a program into it??? Can't seem to ... post the pertinent environmental variables you have set ... cobsw=3D+S5+A > MFORG=3D\cobol\mforgw; > PATH=3D ... MPIO Policies - Microsoft Corporation: Software, Smartphones ...Round Robin with Subset - Load balancing policy that allows the application to specify a set of paths to be used in a round robin fashion, and with a set of standby paths. Adding a Directory to the Path - The NEW Troubleshooters.ComAdding to All Users' Paths (except root) You globally set a path in /etc/profile. That setting is global for all users except user root. Typical /etc/profile files ... 7/26/2012 5:00:51 PM
|
|
|
|
|
|
|
|
|