Skip to content

Commit

Permalink
absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
h0nzZik committed Jun 27, 2024
1 parent ab09b73 commit 34691e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minuska/bin/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ type languagedescr = {
} [@@deriving sexp]

let generate_interpreter scm_filename () =
let dir = Filename.dirname scm_filename in
let dir = Filename.to_absolute_exn ~relative_to:(Core_unix.getcwd ()) (Filename.dirname scm_filename) in
let cfg = Sexp.load_sexp scm_filename |> languagedescr_of_sexp in
let mfile = if (Filename.is_relative cfg.semantics) then (Filename.concat dir cfg.semantics) else (cfg.semantics) in
let parserfile = if (Filename.is_relative cfg.parser_exe) then (Filename.concat dir cfg.parser_exe) else (cfg.parser_exe) in
Expand Down

0 comments on commit 34691e9

Please sign in to comment.