1fad3a1d3Sopenharmony_ciuse std::path::{Path, PathBuf}; 2fad3a1d3Sopenharmony_ci 3fad3a1d3Sopenharmony_cipub fn get(relative_to_workspace_root: impl AsRef<Path>) -> PathBuf { 4fad3a1d3Sopenharmony_ci let mut path = PathBuf::from(env!("CARGO_MANIFEST_DIR")); 5fad3a1d3Sopenharmony_ci assert!(path.pop()); 6fad3a1d3Sopenharmony_ci path.push(relative_to_workspace_root); 7fad3a1d3Sopenharmony_ci path 8fad3a1d3Sopenharmony_ci} 9