diff --git a/src/ahs_program.jl b/src/ahs_program.jl index 8da449f..32b5829 100644 --- a/src/ahs_program.jl +++ b/src/ahs_program.jl @@ -69,7 +69,8 @@ json_str = JSON3.write(ir(ahs_program)) json_obj = JSON3.read(json_str) # Define the file path -file_path = joinpath(@__DIR__, "../examples", "ahs_program.json") + +file_path = joinpath(dirname(@__DIR__), "examples", "ahs_program.json") # Write the JSON object to a file open(file_path, "w") do file