1 diff --git a/serapi/serapi_paths.ml b/serapi/serapi_paths.ml
2 index b71fa60..0bec8c2 100644
3 --- a/serapi/serapi_paths.ml
4 +++ b/serapi/serapi_paths.ml
5 @@ -24,8 +24,8 @@ let coq_loadpath_default ~implicit ~coq_path =
7 let mk_path prefix = coq_path ^ "/" ^ prefix in
8 (* let mk_ml = () in *)
9 - let mk_vo ~has_ml ~coq_path ~dir ~implicit =
10 - { unix_path = mk_path dir
11 + let mk_vo ~has_ml ~coq_path ~dir ~implicit ~absolute =
12 + { unix_path = if absolute then dir else mk_path dir
16 @@ -40,10 +40,10 @@ let coq_loadpath_default ~implicit ~coq_path =
17 List.map fst plugins_dirs
20 - [ mk_vo ~has_ml:false ~coq_path:coq_root ~implicit ~dir:"theories"
21 - ; mk_vo ~has_ml:true ~coq_path:default_root ~implicit:false ~dir:"user-contrib";
22 + [ mk_vo ~has_ml:false ~coq_path:coq_root ~implicit ~dir:"theories" ~absolute:false
23 + ; mk_vo ~has_ml:true ~coq_path:default_root ~implicit:false ~dir:"user-contrib" ~absolute:false;
25 - List.map (fun dir -> mk_vo ~has_ml:true ~coq_path:default_root ~implicit:false ~dir)
26 + List.map (fun dir -> mk_vo ~has_ml:true ~coq_path:default_root ~implicit:false ~dir ~absolute:true)
29 (******************************************************************************)