ScriptUI/xtask/src/path.rs
2024-12-26 00:29:38 +01:00

12 lines
234 B
Rust

use std::path::{Path, PathBuf};
pub fn project_root() -> PathBuf {
Path::new(env!("CARGO_MANIFEST_DIR"))
.parent()
.unwrap()
.to_path_buf()
}
pub fn docs() -> PathBuf {
project_root().join("docs/")
}