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:
parent
516b70e266
commit
630b5b01fd
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user