1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2025-04-16 13:49:19 +02:00

Fix doc.rs

This commit is contained in:
Anthony Scemama 2025-01-10 15:35:06 +01:00
parent 516b70e266
commit 630b5b01fd
2 changed files with 6 additions and 1 deletions

View File

@ -54,7 +54,12 @@ fn find_header_path() -> Option<PathBuf> {
}
// Default for generating the documentation on Doc.rs
Some(PathBuf::from("src/trexio.h"))
if let Ok(dir) = env::current_dir() {
let path = PathBuf::from(dir).join("trexio.h");
Some(path)
} else {
None
}
}