diff options
Diffstat (limited to 'checker')
| -rw-r--r-- | checker/checker.ml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/checker/checker.ml b/checker/checker.ml index c2c21fbe29..0c9d7e2dc3 100644 --- a/checker/checker.ml +++ b/checker/checker.ml @@ -102,6 +102,7 @@ let set_rec_include d p = let init_load_path () = let coqlib = Envars.coqlib () in let user_contrib = coqlib/"user-contrib" in + let coqpath = Envars.coqpath () in let plugins = coqlib/"plugins" in (* NOTE: These directories are searched from last to first *) (* first standard library *) @@ -111,6 +112,8 @@ let init_load_path () = (* then user-contrib *) if Sys.file_exists user_contrib then add_rec_path ~unix_path:user_contrib ~coq_root:Check.default_root_prefix; + (* then directories in COQPATH *) + List.iter (fun s -> add_rec_path ~unix_path:s ~coq_root:Check.default_root_prefix) coqpath; (* then current directory *) add_path ~unix_path:"." ~coq_root:Check.default_root_prefix; (* additional loadpath, given with -I -include -R options *) |
