From 21525e856ce580f35fa96d724b304e883f8cd113 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..d8080216fe 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`.