From 7a2eebfb3d63fdbd118e06901dc28c606c157cd1 Mon Sep 17 00:00:00 2001 From: Itay Tsabary Date: Sun, 24 Nov 2024 21:03:18 +0200 Subject: [PATCH] chore(infra): add project dir path fn commit-id:6207c777 --- crates/infra_utils/src/path.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/infra_utils/src/path.rs b/crates/infra_utils/src/path.rs index f3ceeb0802..ed6f3158a2 100644 --- a/crates/infra_utils/src/path.rs +++ b/crates/infra_utils/src/path.rs @@ -31,6 +31,14 @@ pub fn resolve_project_relative_path(relative_path: &str) -> Result Result { + resolve_project_relative_path(".") +} + fn path_of_project_root() -> PathBuf { cargo_manifest_dir() // Attempt to get the `CARGO_MANIFEST_DIR` environment variable and convert it to `PathBuf`.