mjambon/ocamlscript — pull request #1 by djs55 (2014-08-08 17:04:21+00:00)
Title: Support opam findlib + system compiler

When findlib is installed via opam as a normal user, it cannot
install 'topfind' in the system compiler's directory. Instead
opam will set the environment variable OCAML_TOPLEVEL_PATH to point
to it and add some runes to .ocamlinit.

This patch adds the same runes to the generated OCaml code before the
'#use topfind' line.

See ocaml/opam#45