Skip to content

Commit

Permalink
Alternate proposed API for toplevel
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed Jun 7, 2022
1 parent e8fe890 commit 230a5b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/uTop_main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1371,9 +1371,10 @@ let emacs_mode = ref false
let preload = ref []

let prepare () =
Toploop.set_paths ();
#if OCAML_VERSION >= (5, 0, 0)
Load_path.(init ~auto_include:(fun _ _ -> raise Not_found) (get_paths ()));
Toploop.set_paths ~auto_include:Load_path.no_auto_include ();
#else
Toploop.set_paths ();
#endif
try
let ok =
Expand Down

0 comments on commit 230a5b2

Please sign in to comment.