aboutsummaryrefslogtreecommitdiffhomepage
path: root/toplevel/mltop.ml4
diff options
context:
space:
mode:
Diffstat (limited to 'toplevel/mltop.ml4')
-rw-r--r--toplevel/mltop.ml43
1 files changed, 2 insertions, 1 deletions
diff --git a/toplevel/mltop.ml4 b/toplevel/mltop.ml4
index 378ab7412..6f2679c8c 100644
--- a/toplevel/mltop.ml4
+++ b/toplevel/mltop.ml4
@@ -170,7 +170,8 @@ let add_rec_path dir coq_dirpath =
let prefix = Names.repr_dirpath coq_dirpath in
if dirs <> [] then
let convert_dirs (lp,cp) =
- (lp,Names.make_dirpath (prefix@(List.map convert_string cp))) in
+ (lp,Names.make_dirpath
+ ((List.map convert_string (List.rev cp))@prefix)) in
let dirs = map_succeed convert_dirs dirs in
begin
List.iter (fun lpe -> add_ml_dir (fst lpe)) dirs;