aboutsummaryrefslogtreecommitdiffhomepage
path: root/toplevel/coqinit.ml
diff options
context:
space:
mode:
authorGravatar Guillaume Melquiond <guillaume.melquiond@inria.fr>2016-09-10 13:05:50 +0200
committerGravatar Guillaume Melquiond <guillaume.melquiond@inria.fr>2016-09-10 13:05:50 +0200
commit469c6be3677c365295fd233319db792385e5c688 (patch)
tree44b7578750d851f8efc26a5613949a05286647e4 /toplevel/coqinit.ml
parentcc08fd749889b64dd219673efa4eebc3be6d956a (diff)
Avoid putting a useless "toploop" directory in the ML search path if it does not exist.
Diffstat (limited to 'toplevel/coqinit.ml')
-rw-r--r--toplevel/coqinit.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/toplevel/coqinit.ml b/toplevel/coqinit.ml
index 258a1135f..8a8dbe960 100644
--- a/toplevel/coqinit.ml
+++ b/toplevel/coqinit.ml
@@ -89,7 +89,8 @@ let init_load_path () =
Mltop.add_ml_dir (coqlib/"stm");
Mltop.add_ml_dir (coqlib/"ide")
end;
- Mltop.add_ml_dir (coqlib/"toploop");
+ if System.exists_dir (coqlib/"toploop") then
+ Mltop.add_ml_dir (coqlib/"toploop");
(* then standard library *)
add_stdlib_path ~unix_path:(coqlib/"theories") ~coq_root ~with_ml:false;
(* then plugins *)