Skip to content

Commit 1f1fa86

Browse files
committed
handle path correctly
1 parent e33a63b commit 1f1fa86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/ext/config.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ let version = "4.06.1+BS"
33
let standard_library =
44
let ( // ) = Filename.concat in
55
let exe_path = Sys.executable_name in
6-
if Ext_string.contain_substring exe_path "node_modules/@rescript" then
6+
if Ext_string.contain_substring exe_path ("node_modules" // "@rescript") then
77
(* node_modules/@rescirpt/{platform}/bins *)
88
Filename.dirname exe_path // Filename.parent_dir_name
99
// Filename.parent_dir_name // Filename.parent_dir_name // "rescript"

0 commit comments

Comments
 (0)