File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 30
30
let find_in_path_uncap path name =
31
31
let uname = Ext_string. uncapitalize_ascii name in
32
32
let rec try_dir = function
33
- | [] -> if Sys. file_exists name then Some name else None
33
+ | [] -> None
34
34
| dir ::rem ->
35
35
let ufullname = Filename. concat dir uname in
36
36
if Sys. file_exists ufullname then Some ufullname
Original file line number Diff line number Diff line change @@ -107,6 +107,13 @@ let export (field : string) v =
107
107
Js.Unsafe. set (Js.Unsafe. global) field v
108
108
;;
109
109
110
+ (* To add a directory to the load path *)
111
+
112
+ let dir_directory d =
113
+ Config. load_path := d :: ! Config. load_path
114
+ let () =
115
+ dir_directory " /static"
116
+
110
117
let make_compiler name impl =
111
118
export name
112
119
(Js.Unsafe. (obj
You can’t perform that action at this time.
0 commit comments