summaryrefslogtreecommitdiffstats
path: root/ocamlbuild/command.ml
diff options
context:
space:
mode:
Diffstat (limited to 'ocamlbuild/command.ml')
-rw-r--r--ocamlbuild/command.ml5
1 files changed, 1 insertions, 4 deletions
diff --git a/ocamlbuild/command.ml b/ocamlbuild/command.ml
index f5887cd6a..fc6e07cf4 100644
--- a/ocamlbuild/command.ml
+++ b/ocamlbuild/command.ml
@@ -99,10 +99,7 @@ let env_path = lazy begin
Lexers.parse_environment_path
in
let paths =
- try
- parse_path (Lexing.from_string path_var)
- with Lexers.Error (msg,pos) -> raise (Lexers.Error ("$PATH: " ^ msg, pos))
- in
+ parse_path Const.Source.path (Lexing.from_string path_var) in
let norm_current_dir_name path =
if path = "" then Filename.current_dir_name else path
in