From c0bfab880ca8805e9598e4ac3994a3af0e066bd8 Mon Sep 17 00:00:00 2001 From: lkstrp Date: Tue, 13 Aug 2024 11:16:36 +0200 Subject: [PATCH] Revert "fix: `Path` bug (#2)" This reverts commit 5d5b385c0a11cb98e8aa82f965d13962da36ef84. --- draft_comment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/draft_comment.py b/draft_comment.py index cbbf21aa..0f6d8633 100644 --- a/draft_comment.py +++ b/draft_comment.py @@ -231,7 +231,7 @@ def files_table(self) -> str: for root, _, files in os.walk(self.dir_main): for file in files: if file.endswith(".csv"): - path_in_main = Path(root) / file + path_in_main = root / file relative_path = os.path.relpath(path_in_main, self.dir_main) index_str = "../" + "/".join(str(relative_path).split("/")[1:]) path_in_feature = self.dir_feature / relative_path @@ -306,7 +306,7 @@ def files_table(self) -> str: for root, _, files in os.walk(self.dir_feature): for file in files: if file.endswith(".csv"): - path_in_feature = Path(root) / file + path_in_feature = root / file relative_path = os.path.relpath(path_in_feature, self.dir_feature) index_str = "../" + "/".join(str(relative_path).split("/")[1:])