package stdune

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file env_path.ml

1
2
3
4
5
6
7
8
9
let var = "PATH"

let cons env ~dir =
  Env.update env ~var ~f:(fun _PATH -> Some (Bin.cons_path dir ~_PATH))

let path env =
  match Env.get env var with
  | None -> []
  | Some s -> Bin.parse_path s
OCaml

Innovation. Community. Security.