Skip to content

Commit 3a95768

Browse files
authored
acc: fix find.py not to lose '.' at the beginning of the path (#2483)
Noticed that it currently turns ".databricks" in "databricks".
1 parent cf34dc5 commit 3a95768

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

acceptance/bin/find.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
for root, dirs, files in os.walk("."):
2424
for filename in files:
25-
path = os.path.join(root, filename).lstrip("./\\").replace("\\", "/")
25+
path = os.path.join(root, filename).replace("\\", "/")
26+
path = path.removeprefix("./")
2627
if regex.search(path):
2728
result.append(path)
2829

0 commit comments

Comments
 (0)