Skip to content

Commit 5d5b385

Browse files
authored
fix: Path bug (#2)
1 parent 4fc2505 commit 5d5b385

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

draft_comment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def files_table(self) -> str:
231231
for root, _, files in os.walk(self.dir_main):
232232
for file in files:
233233
if file.endswith(".csv"):
234-
path_in_main = root / file
234+
path_in_main = Path(root) / file
235235
relative_path = os.path.relpath(path_in_main, self.dir_main)
236236
index_str = "../" + "/".join(str(relative_path).split("/")[1:])
237237
path_in_feature = self.dir_feature / relative_path
@@ -306,7 +306,7 @@ def files_table(self) -> str:
306306
for root, _, files in os.walk(self.dir_feature):
307307
for file in files:
308308
if file.endswith(".csv"):
309-
path_in_feature = root / file
309+
path_in_feature = Path(root) / file
310310
relative_path = os.path.relpath(path_in_feature, self.dir_feature)
311311
index_str = "../" + "/".join(str(relative_path).split("/")[1:])
312312

0 commit comments

Comments
 (0)