Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Dec 2, 2024
1 parent 831b103 commit 6bd9882
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rtop/rtop.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@ let start_utop () =
in
(* NOTE(anmonteiro): in the future, we could try checking for
`~/.ocamlinit` and `~/.config/utop/init.ml` and convert those to Reason
and pass `Clflags.init_file` *)
*)
Clflags.init_file :=
(match Sys.file_exists xdg_fn with
| true -> Some xdg_fn
| false ->
(* If `~/.config/rtop/init.re` isn't found, we can't be loading a
user's `init.ml` because it'll be full of syntax errors for
`rtop`. Create an empty temp file instead. *)
let tmp_f = Filename.temp_file "rtop" ".re" in
Some tmp_f));
Some (Filename.temp_file "rtop" ".re")));
UTop_main.main ()

let main () =
Expand Down

0 comments on commit 6bd9882

Please sign in to comment.