Name

find-source-file

Usage

builtin-function

Syntax

(find-source-file name)

Description

Returns the full path name corresponding to the string name. Searches in the current directory and in the directories of the load path (see also $load-path, set-load-path). If name has an extension, then name is used as given. If name has no extension, then the following set of filenames is used:

NAME.k
NAME.kiezel
NAME/NAME.k
NAME/NAME.kiezel
NAME/main.k
NAME/main.kiezel
user > (find-source-file "system")
it: "/home/jan/projects/kiezellisp/lib/system.k"
user > (find-source-file :ftp)
it: "/home/jan/projects/kiezellisp/lib/ftp.k"
user > $load-path
it: ("/home/jan/projects/kiezellisp-private/lib"
     "/home/jan/projects/kiezellisp-private/app"
     "/home/jan/projects/kiezellisp/contrib/lib"
     "/home/jan/projects/kiezellisp/lib"
     "/home/jan/projects/kiezellisp/app")