fix(app): 882 Comprehensive cross-platform path handling utilities

This commit is contained in:
yashksaini-coder
2025-09-01 02:03:51 +05:30
parent 6a24b138dd
commit 64ccce17eb
6 changed files with 367 additions and 163 deletions

View File

@ -27,7 +27,9 @@ except ModuleNotFoundError:
import tomli as tomllib # type: ignore (In case of >3.11 Pyrefly doesnt find tomli , which is right but a false flag)
# Path to pyproject.toml (assuming conf.py is in a 'docs' subdirectory)
pyproject_path = os.path.join(os.path.dirname(__file__), "..", "pyproject.toml")
from libp2p.utils.paths import get_project_root, join_paths
pyproject_path = join_paths(get_project_root(), "pyproject.toml")
with open(pyproject_path, "rb") as f:
pyproject_data = tomllib.load(f)