.TH "Load_path" 3o 2020-01-30 OCamldoc "OCaml library"
.SH NAME
Load_path \- Management of include directories.
.SH Module
Module   Load_path
.SH Documentation
.sp
Module
.BI "Load_path"
 : 
.B sig  end

.sp
Management of include directories\&.
.sp
This module offers a high level interface to locating files in the
load path, which is constructed from 
.B \-I
command line flags and a few
other parameters\&.
.sp
It makes the assumption that the contents of include directories
doesn\&'t change during the execution of the compiler\&.

.sp

.sp
.sp

.I val add_dir 
: 
.B string -> unit
.sp
Add a directory to the load path

.sp

.I val remove_dir 
: 
.B string -> unit
.sp
Remove a directory from the load path

.sp

.I val reset 
: 
.B unit -> unit
.sp
Remove all directories

.sp

.I val init 
: 
.B string list -> unit
.sp

.B init l
is the same as 
.B reset (); List\&.iter add_dir (List\&.rev l)


.sp

.I val get_paths 
: 
.B unit -> string list
.sp
Return the list of directories passed to 
.B add_dir
so far, in
reverse order\&.

.sp

.I val find 
: 
.B string -> string
.sp
Locate a file in the load path\&. Raise 
.B Not_found
if the file
cannot be found\&. This function is optimized for the case where the
filename is a basename, i\&.e\&. doesn\&'t contain a directory
separator\&.

.sp

.I val find_uncap 
: 
.B string -> string
.sp
Same as 
.B find
, but search also for uncapitalized name, i\&.e\&.  if
name is Foo\&.ml, allow /path/Foo\&.ml and /path/foo\&.ml to match\&.

.sp
.I module Dir : 
.B sig  end

.sp

.sp

.I val add 
: 
.B Dir.t -> unit
.sp

.sp

.I val get 
: 
.B unit -> Dir.t list
.sp
Same as 
.B get_paths ()
, except that it returns a 
.B Dir\&.t list
\&.

.sp
