Skip to content

Commit

Permalink
rust: make example path portable
Browse files Browse the repository at this point in the history
  • Loading branch information
randommm committed Feb 18, 2024
1 parent 30c814e commit c9d1d95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rust/examples/example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ fn main() {
let path = Path::new(env!["CARGO_MANIFEST_DIR"])
.parent()
.unwrap()
.join("test_models/simple/simple.stan");
.join("test_models")
.join("simple")
.join("simple.stan");

// The path to the compiled model
let path = compile_model(path, vec![], vec![], None).expect("Could not compile Stan model.");
Expand Down

0 comments on commit c9d1d95

Please sign in to comment.