From 3a957682141f301c39ed8fc3e7aa2dc7521f16b0 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Thu, 13 Mar 2025 11:11:46 +0100 Subject: [PATCH] acc: fix find.py not to lose '.' at the beginning of the path (#2483) Noticed that it currently turns ".databricks" in "databricks". --- acceptance/bin/find.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acceptance/bin/find.py b/acceptance/bin/find.py index d122404b2..be0920be1 100755 --- a/acceptance/bin/find.py +++ b/acceptance/bin/find.py @@ -22,7 +22,8 @@ result = [] for root, dirs, files in os.walk("."): for filename in files: - path = os.path.join(root, filename).lstrip("./\\").replace("\\", "/") + path = os.path.join(root, filename).replace("\\", "/") + path = path.removeprefix("./") if regex.search(path): result.append(path)