Utliser Sys.executable_name au lieu de Sys.argv.(0) (PR#817)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4377 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
45e53cb86c
commit
7b80e7df6f
|
@ -246,7 +246,7 @@ let update_global_table () =
|
|||
let init_toplevel () =
|
||||
(* Read back the known global symbols and the known primitives
|
||||
from the executable file *)
|
||||
let ic = open_in_bin Sys.argv.(0) in
|
||||
let ic = open_in_bin Sys.executable_name in
|
||||
begin try
|
||||
Bytesections.read_toc ic;
|
||||
ignore(Bytesections.seek_section ic "SYMB");
|
||||
|
|
Loading…
Reference in New Issue