mirror of
https://github.com/roapi/roapi.git
synced 2026-06-05 21:04:02 +08:00
9 lines
232 B
Rust
9 lines
232 B
Rust
use std::path::PathBuf;
|
|
|
|
pub fn test_data_path(relative_path: &str) -> String {
|
|
let mut d = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
|
d.push("../test_data");
|
|
d.push(relative_path);
|
|
d.to_string_lossy().to_string()
|
|
}
|