James Kuszmaul | 1cd3c2b | 2024-05-21 17:08:10 -0700 | [diff] [blame^] | 1 | use std::path::{Path, PathBuf}; |
2 | |||||
3 | /// Returns the correct path for a data file within AOS, accounting for whether AOS is | ||||
4 | /// imported as an external repository. | ||||
5 | pub fn artifact_path(path: &Path) -> PathBuf { | ||||
6 | Path::new("..") | ||||
7 | .join(Path::new(env!("AOS_REPO_NAME"))) | ||||
8 | .join(path) | ||||
9 | } |