lib/scripts/ocamlexec
changeset 69924 512ac874bb9d
parent 69906 55534affe445
--- a/lib/scripts/ocamlexec	Tue Mar 19 16:14:59 2019 +0000
+++ b/lib/scripts/ocamlexec	Wed Mar 20 17:33:06 2019 +0100
@@ -4,7 +4,7 @@
 #
 # Invoke command in OCaml environment setup by "opam".
 
-if [ -d "$ISABELLE_OPAM_ROOT" ]
+if [ -e "$ISABELLE_OPAM_ROOT/config" ]
 then
   isabelle_opam config exec --switch "$ISABELLE_OCAML_VERSION" -- "$@"
 else