From 188515eb061868077e3200f12a5529936080ac5a Mon Sep 17 00:00:00 2001 From: jnicoulaud-ledger <102984500+jnicoulaud-ledger@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:59:14 +0200 Subject: [PATCH] fix: fix bad common prefix (#115) https://github.com/LedgerHQ/clear-signing-erc7730-registry/actions/runs/11482854454/job/31956915855?pr=22#step:7:152 see https://stackoverflow.com/questions/21498939/how-to-circumvent-the-fallacy-of-pythons-os-path-commonprefix --- src/erc7730/lint/lint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/erc7730/lint/lint.py b/src/erc7730/lint/lint.py index a1fdd1d..0f3c4e3 100644 --- a/src/erc7730/lint/lint.py +++ b/src/erc7730/lint/lint.py @@ -67,7 +67,7 @@ def get_descriptor_files() -> Generator[Path, None, None]: files = list(get_descriptor_files()) - if len(files) <= 1 or not (root_path := os.path.commonprefix(files)): + if len(files) <= 1 or not (root_path := os.path.commonpath(files)): root_path = None def label(f: Path) -> Path | None: