load problem
Posted: Sat Mar 17, 2012 2:48 am
Hello
I have a problem with the load and require functions.
If the directory dir2 is in the dir1 directory, and if in the dir2 directory, I have two files: file1.lisp and file2.lisp, and if I put (load "file2.lisp") in file1.lisp:
If I run from dir1: clisp dir2/file1.lisp, then I get an error.
It is the same if I use require instead of load.
How can I fix it?
In other words, I have a program made of several files, with one which loads the others. I would like not to have to run this one from the directory where it is.
I have a problem with the load and require functions.
If the directory dir2 is in the dir1 directory, and if in the dir2 directory, I have two files: file1.lisp and file2.lisp, and if I put (load "file2.lisp") in file1.lisp:
If I run from dir1: clisp dir2/file1.lisp, then I get an error.
It is the same if I use require instead of load.
How can I fix it?
In other words, I have a program made of several files, with one which loads the others. I would like not to have to run this one from the directory where it is.